From 86c949185cf1debf4b38a3438d9bc7053e785eae Mon Sep 17 00:00:00 2001 From: Kyle Peacock Date: Mon, 22 Jan 2024 15:20:14 -0800 Subject: [PATCH] fix: manually running prettier --- e2e/browser/package.json | 36 +++++- e2e/node/package.json | 49 ++++++- e2e/node/tsconfig.json | 4 +- package.json | 151 +++++++++++++++++++++- packages/agent/package.json | 86 +++++++++++- packages/agent/tsconfig.json | 6 +- packages/assets/package.json | 85 +++++++++++- packages/assets/tsconfig.json | 4 +- packages/auth-client/package.json | 81 +++++++++++- packages/auth-client/tsconfig.json | 4 +- packages/bls-verify/package.json | 67 +++++++++- packages/bls-verify/tsconfig.json | 4 +- packages/candid/package.json | 76 ++++++++++- packages/candid/tsconfig.json | 4 +- packages/identity-secp256k1/package.json | 29 ++++- packages/identity-secp256k1/tsconfig.json | 6 +- packages/identity/package.json | 78 ++++++++++- packages/identity/tsconfig.json | 6 +- packages/principal/package.json | 71 +++++++++- packages/principal/tsconfig.json | 4 +- tsconfig.json | 4 +- 21 files changed, 821 insertions(+), 34 deletions(-) diff --git a/e2e/browser/package.json b/e2e/browser/package.json index 0dc092a7c..81d3c4a3c 100644 --- a/e2e/browser/package.json +++ b/e2e/browser/package.json @@ -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"}} \ No newline at end of file +{ + "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" + } +} diff --git a/e2e/node/package.json b/e2e/node/package.json index 3b19b4888..3fbc1ebff 100644 --- a/e2e/node/package.json +++ b/e2e/node/package.json @@ -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"}} \ No newline at end of file +{ + "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" + } +} diff --git a/e2e/node/tsconfig.json b/e2e/node/tsconfig.json index aa844cb52..48074d8c2 100644 --- a/e2e/node/tsconfig.json +++ b/e2e/node/tsconfig.json @@ -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" }], } diff --git a/package.json b/package.json index 7b85e85e7..67a524fc5 100644 --- a/package.json +++ b/package.json @@ -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 ","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}}} \ No newline at end of file +{ + "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 ", + "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 + } + } +} diff --git a/packages/agent/package.json b/packages/agent/package.json index 64c2ebd6a..94fcc83fb 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1 +1,85 @@ -{"name":"@dfinity/agent","version":"0.21.1","author":"DFINITY Stiftung ","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}]} \ No newline at end of file +{ + "name": "@dfinity/agent", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "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 + } + ] +} diff --git a/packages/agent/tsconfig.json b/packages/agent/tsconfig.json index 5d74a0447..9c6d698c3 100644 --- a/packages/agent/tsconfig.json +++ b/packages/agent/tsconfig.json @@ -13,7 +13,7 @@ "outDir": "lib/esm", "paths": { "@dfinity/agent": ["src"], - "@dfinity/assets": ["src"] + "@dfinity/assets": ["src"], }, "resolveJsonModule": true, "rootDir": "./src", @@ -21,8 +21,8 @@ "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"], } diff --git a/packages/assets/package.json b/packages/assets/package.json index 39034b875..202b2385e 100644 --- a/packages/assets/package.json +++ b/packages/assets/package.json @@ -1 +1,84 @@ -{"name":"@dfinity/assets","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to manage assets on the Internet Computer","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/assets"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","internet-computer","ic","dfinity","assets","asset","file","upload","agent","actor","dfx","canister","motoko","javascript","typescript","blockchain","crypto","distributed","api","sdk"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","size-limit":"size-limit","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/assets","test":"jest","test:coverage":"jest --collectCoverage"},"peerDependencies":{"@dfinity/agent":"^0.21.1","@dfinity/principal":"^0.21.1","@noble/hashes":"^1.3.1"},"dependencies":{"base64-arraybuffer":"^1.0.2","mime":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.4.0","@types/jest":"^29.5.5","@types/mime":"^2.0.3","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","@web-std/file":"^3.0.2","esbuild":"^0.15.16","eslint":"^8.19.0","jest":"^29.7.0","size-limit":"^8.2.6","typedoc":"^0.22.11"},"browser":{"fs":"./lib/cjs/utils/browserShim.js","path":"./lib/cjs/utils/browserShim.js"},"size-limit":[{"path":"./dist/index.js","limit":"100 kB","webpack":false}]} \ No newline at end of file +{ + "name": "@dfinity/assets", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to manage assets on the Internet Computer", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/assets" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "keywords": [ + "internet computer", + "internet-computer", + "ic", + "dfinity", + "assets", + "asset", + "file", + "upload", + "agent", + "actor", + "dfx", + "canister", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api", + "sdk" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", + "size-limit": "size-limit", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/assets", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "peerDependencies": { + "@dfinity/agent": "^0.21.1", + "@dfinity/principal": "^0.21.1", + "@noble/hashes": "^1.3.1" + }, + "dependencies": { + "base64-arraybuffer": "^1.0.2", + "mime": "^3.0.0" + }, + "devDependencies": { + "@peculiar/webcrypto": "^1.4.0", + "@types/jest": "^29.5.5", + "@types/mime": "^2.0.3", + "@typescript-eslint/eslint-plugin": "^5.30.5", + "@typescript-eslint/parser": "^5.30.5", + "@web-std/file": "^3.0.2", + "esbuild": "^0.15.16", + "eslint": "^8.19.0", + "jest": "^29.7.0", + "size-limit": "^8.2.6", + "typedoc": "^0.22.11" + }, + "browser": { + "fs": "./lib/cjs/utils/browserShim.js", + "path": "./lib/cjs/utils/browserShim.js" + }, + "size-limit": [ + { + "path": "./dist/index.js", + "limit": "100 kB", + "webpack": false + } + ] +} diff --git a/packages/assets/tsconfig.json b/packages/assets/tsconfig.json index a9576c98f..12c295a63 100644 --- a/packages/assets/tsconfig.json +++ b/packages/assets/tsconfig.json @@ -16,8 +16,8 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": ["types/*", "src/**/*", "client-test"], - "references": [{ "path": "../agent" }] + "references": [{ "path": "../agent" }], } diff --git a/packages/auth-client/package.json b/packages/auth-client/package.json index abd3d973f..05e0c0917 100644 --- a/packages/auth-client/package.json +++ b/packages/auth-client/package.json @@ -1 +1,80 @@ -{"name":"@dfinity/auth-client","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/auth-client"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","ic","dfinity","canister","webauthn","identity","principal","authentication","dfx","candid","motoko","javascript","typescript","blockchain","crypto","distributed","api"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","size-limit":"size-limit","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/auth-client --excludeInternal","test":"jest","test:coverage":"jest --collectCoverage"},"peerDependencies":{"@dfinity/agent":"^0.21.1","@dfinity/identity":"^0.21.1","@dfinity/principal":"^0.21.1"},"dependencies":{"idb":"^7.0.2"},"devDependencies":{"@peculiar/webcrypto":"^1.4.0","@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","fake-indexeddb":"^4.0.0","jest":"^29.7.0","jest-environment-jsdom":"^28.1.2","size-limit":"^8.2.6","stream":"^0.0.2","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":"320 kB","webpack":false}]} \ No newline at end of file +{ + "name": "@dfinity/auth-client", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/auth-client" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "keywords": [ + "internet computer", + "ic", + "dfinity", + "canister", + "webauthn", + "identity", + "principal", + "authentication", + "dfx", + "candid", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", + "size-limit": "size-limit", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/auth-client --excludeInternal", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "peerDependencies": { + "@dfinity/agent": "^0.21.1", + "@dfinity/identity": "^0.21.1", + "@dfinity/principal": "^0.21.1" + }, + "dependencies": { + "idb": "^7.0.2" + }, + "devDependencies": { + "@peculiar/webcrypto": "^1.4.0", + "@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", + "fake-indexeddb": "^4.0.0", + "jest": "^29.7.0", + "jest-environment-jsdom": "^28.1.2", + "size-limit": "^8.2.6", + "stream": "^0.0.2", + "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": "320 kB", + "webpack": false + } + ] +} diff --git a/packages/auth-client/tsconfig.json b/packages/auth-client/tsconfig.json index 20d177373..15f925ede 100644 --- a/packages/auth-client/tsconfig.json +++ b/packages/auth-client/tsconfig.json @@ -16,8 +16,8 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": ["types/*", "src/**/*"], - "references": [{ "path": "../agent" }, { "path": "../identity" }] + "references": [{ "path": "../agent" }, { "path": "../identity" }], } diff --git a/packages/bls-verify/package.json b/packages/bls-verify/package.json index 18713007e..4f1ec3613 100644 --- a/packages/bls-verify/package.json +++ b/packages/bls-verify/package.json @@ -1 +1,66 @@ -{"name":"@dfinity/bls-verify","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"bls verification strategy in JavaScript","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/bls-verify"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"type":"module","keywords":["internet computer","ic","dfinity","canister","webauthn","identity","principal","dfx","candid","motoko","javascript","typescript","blockchain","crypto","distributed","api"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js --platform=node","size-limit":"size-limit","ci":"npm run prettier && npm run lint && npm run test","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/bls-verify --excludeInternal","test":"jest","prettier":"prettier --check \"src/**/*.ts\"","prettier:write":"npm run prettier -- --write"},"dependencies":{"amcl-js":"file:src/vendor/amcl-js"},"devDependencies":{"@types/jest":"^29.5.5","esbuild":"^0.15.16","jest":"^29.7.0","size-limit":"^8.1.0"},"size-limit":[{"path":"./dist/index.js","limit":"100 kB","webpack":false}]} \ No newline at end of file +{ + "name": "@dfinity/bls-verify", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "bls verification strategy in JavaScript", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/bls-verify" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "type": "module", + "keywords": [ + "internet computer", + "ic", + "dfinity", + "canister", + "webauthn", + "identity", + "principal", + "dfx", + "candid", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js --platform=node", + "size-limit": "size-limit", + "ci": "npm run prettier && npm run lint && npm run test", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/bls-verify --excludeInternal", + "test": "jest", + "prettier": "prettier --check \"src/**/*.ts\"", + "prettier:write": "npm run prettier -- --write" + }, + "dependencies": { + "amcl-js": "file:src/vendor/amcl-js" + }, + "devDependencies": { + "@types/jest": "^29.5.5", + "esbuild": "^0.15.16", + "jest": "^29.7.0", + "size-limit": "^8.1.0" + }, + "size-limit": [ + { + "path": "./dist/index.js", + "limit": "100 kB", + "webpack": false + } + ] +} diff --git a/packages/bls-verify/tsconfig.json b/packages/bls-verify/tsconfig.json index d6fb55d23..c14ee9683 100644 --- a/packages/bls-verify/tsconfig.json +++ b/packages/bls-verify/tsconfig.json @@ -16,8 +16,8 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": ["src/**/*", "types/**/*", "amcl-js-3.0.0.tgz"], - "references": [] + "references": [], } diff --git a/packages/candid/package.json b/packages/candid/package.json index 38a9fdf5a..95fb4ec1c 100644 --- a/packages/candid/package.json +++ b/packages/candid/package.json @@ -1 +1,75 @@ -{"name":"@dfinity/candid","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to work with candid interfaces","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/candid"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","ic","dfinity","canister","webauthn","identity","principal","dfx","candid","motoko","javascript","typescript","blockchain","crypto","distributed","api"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","size-limit":"size-limit","ci":"npm run prettier && npm run lint && npm run test","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/candid --excludeInternal","prettier":"prettier --check \"src/**/*.ts\"","prettier:write":"npm run prettier -- --write","test":"jest","test:coverage":"jest --collectCoverage"},"peerDependencies":{"@dfinity/principal":"^0.21.1"},"devDependencies":{"@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","jest":"^29.7.0","jest-diff":"^27.3.1","prettier":"^2.0.5","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}]} \ No newline at end of file +{ + "name": "@dfinity/candid", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to work with candid interfaces", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/candid" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "keywords": [ + "internet computer", + "ic", + "dfinity", + "canister", + "webauthn", + "identity", + "principal", + "dfx", + "candid", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", + "size-limit": "size-limit", + "ci": "npm run prettier && npm run lint && npm run test", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/candid --excludeInternal", + "prettier": "prettier --check \"src/**/*.ts\"", + "prettier:write": "npm run prettier -- --write", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "peerDependencies": { + "@dfinity/principal": "^0.21.1" + }, + "devDependencies": { + "@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", + "jest": "^29.7.0", + "jest-diff": "^27.3.1", + "prettier": "^2.0.5", + "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 + } + ] +} diff --git a/packages/candid/tsconfig.json b/packages/candid/tsconfig.json index bd9067961..bfd11de9f 100644 --- a/packages/candid/tsconfig.json +++ b/packages/candid/tsconfig.json @@ -16,8 +16,8 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": ["types/*", "src/**/*", "vendor/bls"], - "references": [] + "references": [], } diff --git a/packages/identity-secp256k1/package.json b/packages/identity-secp256k1/package.json index 0c6af5406..ba3d85249 100644 --- a/packages/identity-secp256k1/package.json +++ b/packages/identity-secp256k1/package.json @@ -1 +1,28 @@ -{"name":"@dfinity/identity-secp256k1","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to manage Secp256k1KeyIdentities for use with the Internet Computer","main":"./lib/cjs/index.js","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","eslint":"eslint --ext '.js,.jsx,.ts,.tsx'","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/identity-secp256k1 --excludeInternal","bundle":"esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node","test":"jest","test:coverage":"jest --collectCoverage"},"dependencies":{"@dfinity/agent":"^0.21.1","@noble/curves":"^1.3.0","@noble/hashes":"^1.3.1","bip39":"^3.1.0","bs58check":"^3.0.1","hdkey":"^2.1.0"},"devDependencies":{"@types/bs58check":"^2.1.0","@types/hdkey":"^2.0.3"}} \ No newline at end of file +{ + "name": "@dfinity/identity-secp256k1", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to manage Secp256k1KeyIdentities for use with the Internet Computer", + "main": "./lib/cjs/index.js", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "eslint": "eslint --ext '.js,.jsx,.ts,.tsx'", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/identity-secp256k1 --excludeInternal", + "bundle": "esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "dependencies": { + "@dfinity/agent": "^0.21.1", + "@noble/curves": "^1.3.0", + "@noble/hashes": "^1.3.1", + "bip39": "^3.1.0", + "bs58check": "^3.0.1", + "hdkey": "^2.1.0" + }, + "devDependencies": { + "@types/bs58check": "^2.1.0", + "@types/hdkey": "^2.0.3" + } +} diff --git a/packages/identity-secp256k1/tsconfig.json b/packages/identity-secp256k1/tsconfig.json index b59d311da..ff0126c77 100644 --- a/packages/identity-secp256k1/tsconfig.json +++ b/packages/identity-secp256k1/tsconfig.json @@ -12,7 +12,7 @@ "moduleResolution": "node", "outDir": "lib/esm", "paths": { - "@dfinity/identity-secp256k1": ["src"] + "@dfinity/identity-secp256k1": ["src"], }, "resolveJsonModule": true, "rootDir": "./src", @@ -20,7 +20,7 @@ "inlineSources": true, "strict": true, "target": "es2017", - "tsBuildInfoFile": "./build_info.json" + "tsBuildInfoFile": "./build_info.json", }, - "include": ["src/**/*.ts", "types/*"] + "include": ["src/**/*.ts", "types/*"], } diff --git a/packages/identity/package.json b/packages/identity/package.json index 595f642cb..f130543c0 100644 --- a/packages/identity/package.json +++ b/packages/identity/package.json @@ -1 +1,77 @@ -{"name":"@dfinity/identity","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to manage identity with the Internet Computer","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/identity"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","ic","dfinity","canister","webauthn","identity","principal","authentication","dfx","motoko","javascript","typescript","blockchain","crypto","distributed","api"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","size-limit":"size-limit","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/identity","test":"jest","test:coverage":"jest --collectCoverage"},"peerDependencies":{"@dfinity/agent":"^0.21.1","@dfinity/principal":"^0.21.1","@peculiar/webcrypto":"^1.4.0"},"dependencies":{"@noble/curves":"^1.2.0","@noble/hashes":"^1.3.1","borc":"^2.1.1"},"devDependencies":{"@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","idb-keyval":"^6.2.0","jest":"^29.7.0","size-limit":"^8.2.6","text-encoding":"^0.7.0","typedoc":"^0.22.11","whatwg-fetch":"^3.0.0"},"size-limit":[{"path":"./dist/index.js","limit":"1 mb","webpack":false}]} \ No newline at end of file +{ + "name": "@dfinity/identity", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to manage identity with the Internet Computer", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/identity" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "keywords": [ + "internet computer", + "ic", + "dfinity", + "canister", + "webauthn", + "identity", + "principal", + "authentication", + "dfx", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", + "size-limit": "size-limit", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/identity", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "peerDependencies": { + "@dfinity/agent": "^0.21.1", + "@dfinity/principal": "^0.21.1", + "@peculiar/webcrypto": "^1.4.0" + }, + "dependencies": { + "@noble/curves": "^1.2.0", + "@noble/hashes": "^1.3.1", + "borc": "^2.1.1" + }, + "devDependencies": { + "@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", + "idb-keyval": "^6.2.0", + "jest": "^29.7.0", + "size-limit": "^8.2.6", + "text-encoding": "^0.7.0", + "typedoc": "^0.22.11", + "whatwg-fetch": "^3.0.0" + }, + "size-limit": [ + { + "path": "./dist/index.js", + "limit": "1 mb", + "webpack": false + } + ] +} diff --git a/packages/identity/tsconfig.json b/packages/identity/tsconfig.json index 9613a1758..6f3b0c451 100644 --- a/packages/identity/tsconfig.json +++ b/packages/identity/tsconfig.json @@ -16,7 +16,7 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": [ "types/*", @@ -24,6 +24,6 @@ "client-test", "index.d.ts", "../identity-secp256k1/src/secp256k1.test.ts", - "../identity-secp256k1/hdkey.ts" - ] + "../identity-secp256k1/hdkey.ts", + ], } diff --git a/packages/principal/package.json b/packages/principal/package.json index 463b273e4..20038d215 100644 --- a/packages/principal/package.json +++ b/packages/principal/package.json @@ -1 +1,70 @@ -{"name":"@dfinity/principal","version":"0.21.1","author":"DFINITY Stiftung ","license":"Apache-2.0","description":"JavaScript and TypeScript library to work with Internet Computer principals","homepage":"https://internetcomputer.org","repository":{"type":"git","url":"https://github.com/dfinity/agent-js.git","directory":"packages/principal"},"bugs":{"url":"https://github.com/dfinity/agent-js/issues"},"keywords":["internet computer","ic","dfinity","canister","webauthn","identity","principal","dfx","candid","motoko","javascript","typescript","blockchain","crypto","distributed","api"],"main":"./lib/cjs/index.js","module":"./lib/esm/index.js","unpkg":"./lib/esm/index","scripts":{"build":"tsc -b && tsc -p tsconfig-cjs.json","bundle":"esbuild --bundle src/index.ts --outfile=dist/index.js","size-limit":"size-limit","lint":"eslint 'src' --ext '.js,.jsx,.ts,.tsx'","lint:fix":"npm run lint -- --fix","make:docs/reference":"typedoc src/index.ts --out ../../docs/generated/principal --excludeInternal","test":"jest","test:coverage":"jest --collectCoverage"},"devDependencies":{"@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","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}],"dependencies":{"@noble/hashes":"^1.3.1"}} \ No newline at end of file +{ + "name": "@dfinity/principal", + "version": "0.21.1", + "author": "DFINITY Stiftung ", + "license": "Apache-2.0", + "description": "JavaScript and TypeScript library to work with Internet Computer principals", + "homepage": "https://internetcomputer.org", + "repository": { + "type": "git", + "url": "https://github.com/dfinity/agent-js.git", + "directory": "packages/principal" + }, + "bugs": { + "url": "https://github.com/dfinity/agent-js/issues" + }, + "keywords": [ + "internet computer", + "ic", + "dfinity", + "canister", + "webauthn", + "identity", + "principal", + "dfx", + "candid", + "motoko", + "javascript", + "typescript", + "blockchain", + "crypto", + "distributed", + "api" + ], + "main": "./lib/cjs/index.js", + "module": "./lib/esm/index.js", + "unpkg": "./lib/esm/index", + "scripts": { + "build": "tsc -b && tsc -p tsconfig-cjs.json", + "bundle": "esbuild --bundle src/index.ts --outfile=dist/index.js", + "size-limit": "size-limit", + "lint": "eslint 'src' --ext '.js,.jsx,.ts,.tsx'", + "lint:fix": "npm run lint -- --fix", + "make:docs/reference": "typedoc src/index.ts --out ../../docs/generated/principal --excludeInternal", + "test": "jest", + "test:coverage": "jest --collectCoverage" + }, + "devDependencies": { + "@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", + "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 + } + ], + "dependencies": { + "@noble/hashes": "^1.3.1" + } +} diff --git a/packages/principal/tsconfig.json b/packages/principal/tsconfig.json index 99dac694c..03001af9f 100644 --- a/packages/principal/tsconfig.json +++ b/packages/principal/tsconfig.json @@ -16,8 +16,8 @@ "sourceMap": true, "inlineSources": true, "strict": true, - "target": "es2017" + "target": "es2017", }, "include": ["types/*", "src/**/*"], - "references": [] + "references": [], } diff --git a/tsconfig.json b/tsconfig.json index 808bbcde8..c7ba6dee8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,11 +5,11 @@ // Required for buffer-pipe "esModuleInterop": true, "lib": ["dom", "ES2020"], - "rootDir": "." + "rootDir": ".", }, "files": [], "references": [{ "path": "packages/agent" }, { "path": "packages/identity" }], "include": ["packages/**/types/*"], "resolveJsonModule": true, - "exclude": ["**/src/**/*.test.ts"] + "exclude": ["**/src/**/*.test.ts"], }