Skip to content

Commit

Permalink
fix: manually running prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Jan 22, 2024
1 parent 4c1dfaa commit 86c9491
Show file tree
Hide file tree
Showing 21 changed files with 821 additions and 34 deletions.
36 changes: 35 additions & 1 deletion e2e/browser/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
{"private":true,"name":"@do-not-publish/ic-cypress-e2e-tests","version":"0.21.1","scripts":{"ci":"npm run e2e","setup":"dfx deploy; dfx generate; pm2 --name parcel start npm -- start","cypress":"cypress run","e2e":"npm run cypress","poste2e":"pm2 kill","eslint:fix":"npm run lint -- --fix","eslint":"eslint --ext '.js,.jsx,.ts,.tsx' cypress *.js","lint":"npm run eslint","build":"","lint:fix":"npm run lint -- --fix","test:coverage":"","test":"","start":"parcel src/index.html"},"devDependencies":{"@types/node":"^18.0.6","concurrently":"^7.3.0","cypress":"^13.2.0","esbuild":"^0.15.16","parcel":"^2.6.2","pm2":"^5.3.0","size-limit":"^8.1.0"},"dependencies":{"@dfinity/agent":"^0.21.1","@dfinity/identity":"^0.21.1","@dfinity/principal":"^0.21.1","idb-keyval":"^6.2.0"}}
{
"private": true,
"name": "@do-not-publish/ic-cypress-e2e-tests",
"version": "0.21.1",
"scripts": {
"ci": "npm run e2e",
"setup": "dfx deploy; dfx generate; pm2 --name parcel start npm -- start",
"cypress": "cypress run",
"e2e": "npm run cypress",
"poste2e": "pm2 kill",
"eslint:fix": "npm run lint -- --fix",
"eslint": "eslint --ext '.js,.jsx,.ts,.tsx' cypress *.js",
"lint": "npm run eslint",
"build": "",
"lint:fix": "npm run lint -- --fix",
"test:coverage": "",
"test": "",
"start": "parcel src/index.html"
},
"devDependencies": {
"@types/node": "^18.0.6",
"concurrently": "^7.3.0",
"cypress": "^13.2.0",
"esbuild": "^0.15.16",
"parcel": "^2.6.2",
"pm2": "^5.3.0",
"size-limit": "^8.1.0"
},
"dependencies": {
"@dfinity/agent": "^0.21.1",
"@dfinity/identity": "^0.21.1",
"@dfinity/principal": "^0.21.1",
"idb-keyval": "^6.2.0"
}
}
49 changes: 48 additions & 1 deletion e2e/node/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
{"private":true,"name":"@do-not-publish/ic-node-e2e-tests","version":"0.21.1","type":"module","scripts":{"ci":"npm run e2e","e2e":"vitest","eslint:fix":"npm run lint -- --fix","eslint":"eslint --ext '.js,.jsx,.ts,.tsx' basic canisters utils *.ts","lint":"npm run eslint","mitm":"MITM=true vitest ./basic/mitm.test.ts","build":"","lint:fix":"npm run lint -- --fix","test:coverage":"","test":""},"dependencies":{"@dfinity/agent":"^0.21.1","@dfinity/assets":"^0.21.1","@dfinity/identity":"^0.21.1","@dfinity/principal":"^0.21.1","whatwg-fetch":"^3.6.2"},"devDependencies":{"@peculiar/webcrypto":"^1.4.0","@trust/webcrypto":"^0.9.2","@tsconfig/node16":"^1.0.3","@tsconfig/node17":"^1.0.1","@types/base64-js":"^1.3.0","@types/isomorphic-fetch":"^0.0.36","@types/text-encoding":"^0.0.36","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","esbuild":"^0.15.16","eslint":"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","isomorphic-fetch":"^3.0.0","locus":"^2.0.4","node-webcrypto-p11":"^2.5.0","size-limit":"^8.2.6","text-encoding":"^0.7.0","ts-node":"^10.8.2","typescript":"^5.2.2","vitest":"^0.34.6","webcrypto-core":"^1.7.5"}}
{
"private": true,
"name": "@do-not-publish/ic-node-e2e-tests",
"version": "0.21.1",
"type": "module",
"scripts": {
"ci": "npm run e2e",
"e2e": "vitest",
"eslint:fix": "npm run lint -- --fix",
"eslint": "eslint --ext '.js,.jsx,.ts,.tsx' basic canisters utils *.ts",
"lint": "npm run eslint",
"mitm": "MITM=true vitest ./basic/mitm.test.ts",
"build": "",
"lint:fix": "npm run lint -- --fix",
"test:coverage": "",
"test": ""
},
"dependencies": {
"@dfinity/agent": "^0.21.1",
"@dfinity/assets": "^0.21.1",
"@dfinity/identity": "^0.21.1",
"@dfinity/principal": "^0.21.1",
"whatwg-fetch": "^3.6.2"
},
"devDependencies": {
"@peculiar/webcrypto": "^1.4.0",
"@trust/webcrypto": "^0.9.2",
"@tsconfig/node16": "^1.0.3",
"@tsconfig/node17": "^1.0.1",
"@types/base64-js": "^1.3.0",
"@types/isomorphic-fetch": "^0.0.36",
"@types/text-encoding": "^0.0.36",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"esbuild": "^0.15.16",
"eslint": "^8.19.0",
"eslint-plugin-jsdoc": "^39.3.3",
"isomorphic-fetch": "^3.0.0",
"locus": "^2.0.4",
"node-webcrypto-p11": "^2.5.0",
"size-limit": "^8.2.6",
"text-encoding": "^0.7.0",
"ts-node": "^10.8.2",
"typescript": "^5.2.2",
"vitest": "^0.34.6",
"webcrypto-core": "^1.7.5"
}
}
4 changes: 2 additions & 2 deletions e2e/node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"skipLibCheck": true,
"esModuleInterop": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
},
"references": [{ "path": "../../packages/agent" }, { "path": "../../packages/identity" }]
"references": [{ "path": "../../packages/agent" }, { "path": "../../packages/identity" }],
}
151 changes: 150 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1 +1,150 @@
{"name":"@dfinity/agent-monorepo","version":"0.21.1","private":true,"description":"Use an Agent to interact with the Internet Computer from your JavaScript program.","workspaces":{"packages":["packages/principal","packages/candid","packages/agent","packages/bls-verify","packages/identity","packages/auth-client","packages/assets","packages/identity-secp256k1","e2e/browser","e2e/node"]},"devDependencies":{"@jest/types":"^29.6.3","@size-limit/preset-small-lib":"^9.0.0","@types/jest":"^29.5.5","@types/node":"^20.8.6","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","eslint":"^8.51.0","eslint-plugin-cypress":"^2.15.1","eslint-plugin-jsdoc":"^46.8.2","eslint-plugin-prettier":"^4.2.1","fs":"^0.0.1-security","husky":"^8.0.3","jest":"^29.7.0","jest-cli":"^29.7.0","jest-environment-jsdom":"29.7.0","jest-environment-node":"^29.7.0","os":"^0.1.2","path":"^0.12.7","prettier":"^2.8.8","pretty-quick":"^3.1.3","release-it":"^16.2.1","size-limit":"^10.0.2","size-limit-node-esbuild":"^0.2.0","ts-jest":"^29.1.1","ts-node":"^10.9.1","typedoc":"^0.25.2","typescript":"^5.2.2","url":"^0.11.3","webcrypto-core":"^1.7.7","yargs":"^17.7.2"},"engines":{"node":"^12 || ^14 || ^16 || >=17","npm":"^7.17 || >=8"},"scripts":{"lint:e2e":"eslint --cache --cache-location node_modules/.cache/eslint 'e2e/*/**/*.ts*'","build":"npm run build --workspaces --if-present; npm run bundle --workspaces --if-present","lint:fix":"","make:docs":"npm run make:docs/reference --workspaces --if-present; ","release":"release-it","size":"size-limit --json","test:coverage":"","test":"jest","test-size":"esbuild","prepare":"husky install","prettier:check":"npx -p prettier -p pretty-quick pretty-quick --check","prettier:format":"npx -p prettier -p pretty-quick pretty-quick","postversion":"npm run prettier:format"},"repository":{"type":"git","url":"git+https://github.com/dfinity-lab/agent-js.git"},"author":"DFINITY Stiftung <[email protected]>","license":"Apache-2.0","bugs":{"url":"https://github.com/dfinity-lab/agent-js/issues"},"homepage":"https://github.com/dfinity-lab/agent-js#readme","size-limit":[{"name":"@dfinity/agent","path":"./packages/agent/dist/index.js","limit":"105 kB"},{"name":"@dfinity/candid","path":"./packages/candid/dist/index.js","limit":"20 kb"},{"name":"@dfinity/principal","path":"./packages/principal/dist/index.js","limit":"10 kB"},{"name":"@dfinity/auth-client","path":"./packages/auth-client/dist/index.js","limit":"320 kB"},{"name":"@dfinity/assets","path":"./packages/assets/dist/index.js","limit":"100 kB"},{"name":"@dfinity/identity","path":"./packages/identity/dist/index.js","limit":"100 kB"},{"name":"@dfinity/identity-secp256k1","path":"./packages/identity-secp256k1/dist/index.js","limit":"269 kB"}],"release-it":{"hooks":{"after:bump":["ts-node bin/version.ts ${version}","ts-node bin/roll-changelog.ts ${version}"],"before:release":["git pull","git checkout release/${version} 2>/dev/null || git checkout -b release/${version}","git merge main","git push --set-upstream origin release/${version}"],"after:release":["gh pr create --base main --title 'chore: release ${version}' --body 'GitHub Release: ${releaseUrl}\nNPM release: https://www.npmjs.com/package/@dfinity/agent/v/${version}'"]},"git":{"requireBranch":"main","tagName":"v${version}","pushArgs":["--force-with-lease"]},"npm":{"publish":false},"github":{"release":true,"draft":true,"autoGenerate":true}}}
{
"name": "@dfinity/agent-monorepo",
"version": "0.21.1",
"private": true,
"description": "Use an Agent to interact with the Internet Computer from your JavaScript program.",
"workspaces": {
"packages": [
"packages/principal",
"packages/candid",
"packages/agent",
"packages/bls-verify",
"packages/identity",
"packages/auth-client",
"packages/assets",
"packages/identity-secp256k1",
"e2e/browser",
"e2e/node"
]
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@size-limit/preset-small-lib": "^9.0.0",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.51.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-prettier": "^4.2.1",
"fs": "^0.0.1-security",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-environment-node": "^29.7.0",
"os": "^0.1.2",
"path": "^0.12.7",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"release-it": "^16.2.1",
"size-limit": "^10.0.2",
"size-limit-node-esbuild": "^0.2.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.2",
"typescript": "^5.2.2",
"url": "^0.11.3",
"webcrypto-core": "^1.7.7",
"yargs": "^17.7.2"
},
"engines": {
"node": "^12 || ^14 || ^16 || >=17",
"npm": "^7.17 || >=8"
},
"scripts": {
"lint:e2e": "eslint --cache --cache-location node_modules/.cache/eslint 'e2e/*/**/*.ts*'",
"build": "npm run build --workspaces --if-present; npm run bundle --workspaces --if-present",
"lint:fix": "",
"make:docs": "npm run make:docs/reference --workspaces --if-present; ",
"release": "release-it",
"size": "size-limit --json",
"test:coverage": "",
"test": "jest",
"test-size": "esbuild",
"prepare": "husky install",
"prettier:check": "npx -p prettier -p pretty-quick pretty-quick --check",
"prettier:format": "npx -p prettier -p pretty-quick pretty-quick",
"postversion": "npm run prettier:format"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dfinity-lab/agent-js.git"
},
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dfinity-lab/agent-js/issues"
},
"homepage": "https://github.com/dfinity-lab/agent-js#readme",
"size-limit": [
{
"name": "@dfinity/agent",
"path": "./packages/agent/dist/index.js",
"limit": "105 kB"
},
{
"name": "@dfinity/candid",
"path": "./packages/candid/dist/index.js",
"limit": "20 kb"
},
{
"name": "@dfinity/principal",
"path": "./packages/principal/dist/index.js",
"limit": "10 kB"
},
{
"name": "@dfinity/auth-client",
"path": "./packages/auth-client/dist/index.js",
"limit": "320 kB"
},
{
"name": "@dfinity/assets",
"path": "./packages/assets/dist/index.js",
"limit": "100 kB"
},
{
"name": "@dfinity/identity",
"path": "./packages/identity/dist/index.js",
"limit": "100 kB"
},
{
"name": "@dfinity/identity-secp256k1",
"path": "./packages/identity-secp256k1/dist/index.js",
"limit": "269 kB"
}
],
"release-it": {
"hooks": {
"after:bump": [
"ts-node bin/version.ts ${version}",
"ts-node bin/roll-changelog.ts ${version}"
],
"before:release": [
"git pull",
"git checkout release/${version} 2>/dev/null || git checkout -b release/${version}",
"git merge main",
"git push --set-upstream origin release/${version}"
],
"after:release": [
"gh pr create --base main --title 'chore: release ${version}' --body 'GitHub Release: ${releaseUrl}\nNPM release: https://www.npmjs.com/package/@dfinity/agent/v/${version}'"
]
},
"git": {
"requireBranch": "main",
"tagName": "v${version}",
"pushArgs": [
"--force-with-lease"
]
},
"npm": {
"publish": false
},
"github": {
"release": true,
"draft": true,
"autoGenerate": true
}
}
}
86 changes: 85 additions & 1 deletion packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,85 @@
{"name":"@dfinity/agent","version":"0.21.1","author":"DFINITY Stiftung <[email protected]>","license":"Apache-2.0","description":"JavaScript and TypeScript library to interact with the Internet Computer","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/agent"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","internet-computer","ic","dfinity","agent","actor","dfx","canister","candid","motoko","javascript","typescript","blockchain","crypto","distributed","api","sdk"],"main":"./lib/cjs/index","module":"./lib/esm/index","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","build:watch":"tsc -b --watch","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","eslint:fix":"npm run lint -- --fix","eslint":"eslint --ext '.js,.jsx,.ts,.tsx' src/index.ts src/auth.ts src/request_id.ts src/request_id.test.ts","lint":"npm run eslint","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/agent --excludeInternal","test":"jest","test:coverage":"jest --collectCoverage"},"peerDependencies":{"@dfinity/candid":"^0.21.1","@dfinity/principal":"^0.21.1"},"dependencies":{"@noble/curves":"^1.2.0","@noble/hashes":"^1.3.1","base64-arraybuffer":"^0.2.0","borc":"^2.1.1","buffer":"^6.0.3","simple-cbor":"^0.4.1"},"devDependencies":{"@dfinity/utils":"^0.0.22","@peculiar/webcrypto":"^1.4.3","@trust/webcrypto":"^0.9.2","@types/jest":"^29.5.5","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","esbuild":"^0.15.16","eslint":"^8.19.0","isomorphic-fetch":"^3.0.0","jest":"^29.7.0","size-limit":"^8.2.6","text-encoding":"^0.7.0","ts-node":"^10.8.2","typedoc":"^0.22.11","whatwg-fetch":"^3.0.0"},"size-limit":[{"path":"./dist/index.js","limit":"100 kB","webpack":false}]}
{
"name": "@dfinity/agent",
"version": "0.21.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
"homepage": "https://internetcomputer.org",
"repository": {
"type": "git",
"url": "https://github.com/dfinity/agent-js.git",
"directory": "packages/agent"
},
"bugs": {
"url": "https://github.com/dfinity/agent-js/issues"
},
"keywords": [
"internet computer",
"internet-computer",
"ic",
"dfinity",
"agent",
"actor",
"dfx",
"canister",
"candid",
"motoko",
"javascript",
"typescript",
"blockchain",
"crypto",
"distributed",
"api",
"sdk"
],
"main": "./lib/cjs/index",
"module": "./lib/esm/index",
"unpkg": "./lib/esm/index",
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"build:watch": "tsc -b --watch",
"bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js",
"eslint:fix": "npm run lint -- --fix",
"eslint": "eslint --ext '.js,.jsx,.ts,.tsx' src/index.ts src/auth.ts src/request_id.ts src/request_id.test.ts",
"lint": "npm run eslint",
"make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/agent --excludeInternal",
"test": "jest",
"test:coverage": "jest --collectCoverage"
},
"peerDependencies": {
"@dfinity/candid": "^0.21.1",
"@dfinity/principal": "^0.21.1"
},
"dependencies": {
"@noble/curves": "^1.2.0",
"@noble/hashes": "^1.3.1",
"base64-arraybuffer": "^0.2.0",
"borc": "^2.1.1",
"buffer": "^6.0.3",
"simple-cbor": "^0.4.1"
},
"devDependencies": {
"@dfinity/utils": "^0.0.22",
"@peculiar/webcrypto": "^1.4.3",
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^29.5.5",
"@typescript-eslint/eslint-plugin": "^5.30.5",
"@typescript-eslint/parser": "^5.30.5",
"esbuild": "^0.15.16",
"eslint": "^8.19.0",
"isomorphic-fetch": "^3.0.0",
"jest": "^29.7.0",
"size-limit": "^8.2.6",
"text-encoding": "^0.7.0",
"ts-node": "^10.8.2",
"typedoc": "^0.22.11",
"whatwg-fetch": "^3.0.0"
},
"size-limit": [
{
"path": "./dist/index.js",
"limit": "100 kB",
"webpack": false
}
]
}
6 changes: 3 additions & 3 deletions packages/agent/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
"outDir": "lib/esm",
"paths": {
"@dfinity/agent": ["src"],
"@dfinity/assets": ["src"]
"@dfinity/assets": ["src"],
},
"resolveJsonModule": true,
"rootDir": "./src",
"sourceMap": true,
"inlineSources": true,
"strict": true,
"target": "es2017",
"tsBuildInfoFile": "./build_info.json"
"tsBuildInfoFile": "./build_info.json",
},
"include": ["types/*", "src/**/*.ts", "../candid/src/utils/bls.test.ts"],
"exclude": ["**/src/**/__certificates__/**", "**/src/**/*.test.ts"]
"exclude": ["**/src/**/__certificates__/**", "**/src/**/*.test.ts"],
}
Loading

0 comments on commit 86c9491

Please sign in to comment.