From e7265524f9fdda35c895320ee09761df2d89d2d9 Mon Sep 17 00:00:00 2001
From: krpeacock <16298804+krpeacock@users.noreply.github.com>
Date: Tue, 23 Jan 2024 00:19:00 +0000
Subject: [PATCH 1/2] Release 0.21.2
---
docs/generated/changelog.html | 2 +
e2e/browser/package.json | 36 +-----
e2e/node/package.json | 49 +-------
package-lock.json | 4 +-
package.json | 151 +----------------------
packages/agent/package.json | 86 +------------
packages/assets/package.json | 85 +------------
packages/auth-client/package.json | 81 +-----------
packages/bls-verify/package.json | 67 +---------
packages/candid/package.json | 76 +-----------
packages/identity-secp256k1/package.json | 29 +----
packages/identity/package.json | 78 +-----------
packages/principal/package.json | 71 +----------
13 files changed, 15 insertions(+), 800 deletions(-)
diff --git a/docs/generated/changelog.html b/docs/generated/changelog.html
index 92e3e57f..4e6cc9bc 100644
--- a/docs/generated/changelog.html
+++ b/docs/generated/changelog.html
@@ -12,6 +12,8 @@
Agent-JS Changelog
Version x.x.x
+ Version 0.21.2
+
Version 0.21.1
Version 0.21.0
diff --git a/e2e/browser/package.json b/e2e/browser/package.json
index 81d3c4a3..fcbeaae4 100644
--- a/e2e/browser/package.json
+++ b/e2e/browser/package.json
@@ -1,35 +1 @@
-{
- "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.2","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.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2","idb-keyval":"^6.2.0"}}
\ No newline at end of file
diff --git a/e2e/node/package.json b/e2e/node/package.json
index 3fbc1ebf..124f6aa6 100644
--- a/e2e/node/package.json
+++ b/e2e/node/package.json
@@ -1,48 +1 @@
-{
- "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.2","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.2","@dfinity/assets":"^0.21.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2","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
diff --git a/package-lock.json b/package-lock.json
index f819d31b..c3c8c049 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@dfinity/agent-monorepo",
- "version": "0.21.1",
+ "version": "0.21.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@dfinity/agent-monorepo",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"devDependencies": {
"@jest/types": "^29.6.3",
diff --git a/package.json b/package.json
index 67a524fc..ff814d5b 100644
--- a/package.json
+++ b/package.json
@@ -1,150 +1 @@
-{
- "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
- }
- }
-}
+{"name":"@dfinity/agent-monorepo","version":"0.21.2","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
diff --git a/packages/agent/package.json b/packages/agent/package.json
index 94fcc83f..6c9ab83c 100644
--- a/packages/agent/package.json
+++ b/packages/agent/package.json
@@ -1,85 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/agent","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2"},"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
diff --git a/packages/assets/package.json b/packages/assets/package.json
index 202b2385..45e76537 100644
--- a/packages/assets/package.json
+++ b/packages/assets/package.json
@@ -1,84 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/assets","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2","@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
diff --git a/packages/auth-client/package.json b/packages/auth-client/package.json
index 05e0c091..9b8230d0 100644
--- a/packages/auth-client/package.json
+++ b/packages/auth-client/package.json
@@ -1,80 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/auth-client","version":"0.21.2","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.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2"},"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
diff --git a/packages/bls-verify/package.json b/packages/bls-verify/package.json
index 4f1ec361..e85b058f 100644
--- a/packages/bls-verify/package.json
+++ b/packages/bls-verify/package.json
@@ -1,66 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/bls-verify","version":"0.21.2","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
diff --git a/packages/candid/package.json b/packages/candid/package.json
index 95fb4ec1..52ebe2b6 100644
--- a/packages/candid/package.json
+++ b/packages/candid/package.json
@@ -1,75 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/candid","version":"0.21.2","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.2"},"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
diff --git a/packages/identity-secp256k1/package.json b/packages/identity-secp256k1/package.json
index ba3d8524..42b61139 100644
--- a/packages/identity-secp256k1/package.json
+++ b/packages/identity-secp256k1/package.json
@@ -1,28 +1 @@
-{
- "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"
- }
-}
+{"name":"@dfinity/identity-secp256k1","version":"0.21.2","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.2","@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
diff --git a/packages/identity/package.json b/packages/identity/package.json
index f130543c..7be903ee 100644
--- a/packages/identity/package.json
+++ b/packages/identity/package.json
@@ -1,77 +1 @@
-{
- "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
- }
- ]
-}
+{"name":"@dfinity/identity","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2","@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
diff --git a/packages/principal/package.json b/packages/principal/package.json
index 20038d21..7283dbd0 100644
--- a/packages/principal/package.json
+++ b/packages/principal/package.json
@@ -1,70 +1 @@
-{
- "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"
- }
-}
+{"name":"@dfinity/principal","version":"0.21.2","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
From aff752031e54bed8fb6ebce941f2a981d51b0e05 Mon Sep 17 00:00:00 2001
From: Kyle Peacock
Date: Mon, 22 Jan 2024 16:22:36 -0800
Subject: [PATCH 2/2] chore: formatting and package lock
---
e2e/browser/package.json | 36 +++++-
e2e/node/package.json | 49 ++++++-
e2e/node/tsconfig.json | 4 +-
package-lock.json | 56 ++++----
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 +-
22 files changed, 849 insertions(+), 62 deletions(-)
diff --git a/e2e/browser/package.json b/e2e/browser/package.json
index fcbeaae4..3a597ae3 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.2","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.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2","idb-keyval":"^6.2.0"}}
\ No newline at end of file
+{
+ "private": true,
+ "name": "@do-not-publish/ic-cypress-e2e-tests",
+ "version": "0.21.2",
+ "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.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
+ "idb-keyval": "^6.2.0"
+ }
+}
diff --git a/e2e/node/package.json b/e2e/node/package.json
index 124f6aa6..87825ba0 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.2","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.2","@dfinity/assets":"^0.21.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2","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.2",
+ "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.2",
+ "@dfinity/assets": "^0.21.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
+ "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 48074d8c..aa844cb5 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-lock.json b/package-lock.json
index c3c8c049..32048bae 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -61,11 +61,11 @@
},
"e2e/browser": {
"name": "@do-not-publish/ic-cypress-e2e-tests",
- "version": "0.21.1",
+ "version": "0.21.2",
"dependencies": {
- "@dfinity/agent": "^0.21.1",
- "@dfinity/identity": "^0.21.1",
- "@dfinity/principal": "^0.21.1",
+ "@dfinity/agent": "^0.21.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
"idb-keyval": "^6.2.0"
},
"devDependencies": {
@@ -109,12 +109,12 @@
},
"e2e/node": {
"name": "@do-not-publish/ic-node-e2e-tests",
- "version": "0.21.1",
+ "version": "0.21.2",
"dependencies": {
- "@dfinity/agent": "^0.21.1",
- "@dfinity/assets": "^0.21.1",
- "@dfinity/identity": "^0.21.1",
- "@dfinity/principal": "^0.21.1",
+ "@dfinity/agent": "^0.21.2",
+ "@dfinity/assets": "^0.21.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
"whatwg-fetch": "^3.6.2"
},
"devDependencies": {
@@ -22628,7 +22628,7 @@
},
"packages/agent": {
"name": "@dfinity/agent",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"@noble/curves": "^1.2.0",
@@ -22656,8 +22656,8 @@
"whatwg-fetch": "^3.0.0"
},
"peerDependencies": {
- "@dfinity/candid": "^0.21.1",
- "@dfinity/principal": "^0.21.1"
+ "@dfinity/candid": "^0.21.2",
+ "@dfinity/principal": "^0.21.2"
}
},
"packages/agent/node_modules/@typescript-eslint/eslint-plugin": {
@@ -22840,7 +22840,7 @@
},
"packages/assets": {
"name": "@dfinity/assets",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"base64-arraybuffer": "^1.0.2",
@@ -22860,8 +22860,8 @@
"typedoc": "^0.22.11"
},
"peerDependencies": {
- "@dfinity/agent": "^0.21.1",
- "@dfinity/principal": "^0.21.1",
+ "@dfinity/agent": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
"@noble/hashes": "^1.3.1"
}
},
@@ -23067,7 +23067,7 @@
},
"packages/auth-client": {
"name": "@dfinity/auth-client",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"idb": "^7.0.2"
@@ -23090,9 +23090,9 @@
"whatwg-fetch": "^3.0.0"
},
"peerDependencies": {
- "@dfinity/agent": "^0.21.1",
- "@dfinity/identity": "^0.21.1",
- "@dfinity/principal": "^0.21.1"
+ "@dfinity/agent": "^0.21.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2"
}
},
"packages/auth-client/node_modules/@jest/environment": {
@@ -23485,7 +23485,7 @@
},
"packages/bls-verify": {
"name": "@dfinity/bls-verify",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"amcl-js": "file:src/vendor/amcl-js"
@@ -23525,7 +23525,7 @@
},
"packages/candid": {
"name": "@dfinity/candid",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"devDependencies": {
"@types/jest": "^29.5.5",
@@ -23543,7 +23543,7 @@
"whatwg-fetch": "^3.0.0"
},
"peerDependencies": {
- "@dfinity/principal": "^0.21.1"
+ "@dfinity/principal": "^0.21.2"
}
},
"packages/candid/node_modules/@typescript-eslint/eslint-plugin": {
@@ -23726,7 +23726,7 @@
},
"packages/identity": {
"name": "@dfinity/identity",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"@noble/curves": "^1.2.0",
@@ -23747,17 +23747,17 @@
"whatwg-fetch": "^3.0.0"
},
"peerDependencies": {
- "@dfinity/agent": "^0.21.1",
- "@dfinity/principal": "^0.21.1",
+ "@dfinity/agent": "^0.21.2",
+ "@dfinity/principal": "^0.21.2",
"@peculiar/webcrypto": "^1.4.0"
}
},
"packages/identity-secp256k1": {
"name": "@dfinity/identity-secp256k1",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
- "@dfinity/agent": "^0.21.1",
+ "@dfinity/agent": "^0.21.2",
"@noble/curves": "^1.3.0",
"@noble/hashes": "^1.3.1",
"bip39": "^3.1.0",
@@ -23949,7 +23949,7 @@
},
"packages/principal": {
"name": "@dfinity/principal",
- "version": "0.21.1",
+ "version": "0.21.2",
"license": "Apache-2.0",
"dependencies": {
"@noble/hashes": "^1.3.1"
diff --git a/package.json b/package.json
index ff814d5b..f76e52c2 100644
--- a/package.json
+++ b/package.json
@@ -1 +1,150 @@
-{"name":"@dfinity/agent-monorepo","version":"0.21.2","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.2",
+ "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 6c9ab83c..87aba8bc 100644
--- a/packages/agent/package.json
+++ b/packages/agent/package.json
@@ -1 +1,85 @@
-{"name":"@dfinity/agent","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2"},"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.2",
+ "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.2",
+ "@dfinity/principal": "^0.21.2"
+ },
+ "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 9c6d698c..5d74a044 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 45e76537..67561e85 100644
--- a/packages/assets/package.json
+++ b/packages/assets/package.json
@@ -1 +1,84 @@
-{"name":"@dfinity/assets","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2","@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.2",
+ "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.2",
+ "@dfinity/principal": "^0.21.2",
+ "@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 12c295a6..a9576c98 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 9b8230d0..d174b100 100644
--- a/packages/auth-client/package.json
+++ b/packages/auth-client/package.json
@@ -1 +1,80 @@
-{"name":"@dfinity/auth-client","version":"0.21.2","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.2","@dfinity/identity":"^0.21.2","@dfinity/principal":"^0.21.2"},"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.2",
+ "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.2",
+ "@dfinity/identity": "^0.21.2",
+ "@dfinity/principal": "^0.21.2"
+ },
+ "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 15f925ed..20d17737 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 e85b058f..d64a357d 100644
--- a/packages/bls-verify/package.json
+++ b/packages/bls-verify/package.json
@@ -1 +1,66 @@
-{"name":"@dfinity/bls-verify","version":"0.21.2","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.2",
+ "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 c14ee968..d6fb55d2 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 52ebe2b6..8d5ce737 100644
--- a/packages/candid/package.json
+++ b/packages/candid/package.json
@@ -1 +1,75 @@
-{"name":"@dfinity/candid","version":"0.21.2","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.2"},"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.2",
+ "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.2"
+ },
+ "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 bfd11de9..bd906796 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 42b61139..6512236f 100644
--- a/packages/identity-secp256k1/package.json
+++ b/packages/identity-secp256k1/package.json
@@ -1 +1,28 @@
-{"name":"@dfinity/identity-secp256k1","version":"0.21.2","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.2","@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.2",
+ "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.2",
+ "@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 ff0126c7..b59d311d 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 7be903ee..027f5d73 100644
--- a/packages/identity/package.json
+++ b/packages/identity/package.json
@@ -1 +1,77 @@
-{"name":"@dfinity/identity","version":"0.21.2","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.2","@dfinity/principal":"^0.21.2","@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.2",
+ "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.2",
+ "@dfinity/principal": "^0.21.2",
+ "@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 6f3b0c45..9613a175 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 7283dbd0..5132ebce 100644
--- a/packages/principal/package.json
+++ b/packages/principal/package.json
@@ -1 +1,70 @@
-{"name":"@dfinity/principal","version":"0.21.2","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.2",
+ "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 03001af9..99dac694 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 c7ba6dee..808bbcde 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"]
}