Skip to content

Commit

Permalink
🎨 added append auth flow
Browse files Browse the repository at this point in the history
  • Loading branch information
neeboo committed Aug 24, 2022
1 parent 80178a0 commit e09cce0
Show file tree
Hide file tree
Showing 22 changed files with 3,221 additions and 486 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
"husky": "^6.0.0",
"jest-expect-message": "^1.0.2",
"lerna": "^4.0.0",
"prettier": "^2.3.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.0",
"tar": "^6.1.11",
"ts-node": "^9.1.1",
"typedoc": "^0.22.15",
"typescript": "^3.6.3"
"typescript": "^4.6.4"
},
"engines": {
"node": ">=12",
"npm": "^7"
"node": ">=16",
"npm": "^8"
},
"scripts": {
"lint:e2e": "eslint --cache --cache-location node_modules/.cache/eslint 'e2e/*/**/*.ts*'",
Expand All @@ -64,4 +64,4 @@
"url": "https://github.com/AstroxNetwork/astrox-js/issues"
},
"homepage": "https://github.com/AstroxNetwork/astrox-js#readme"
}
}
132 changes: 58 additions & 74 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,60 @@
{
"name": "@astrox/agent",
"version": "0.0.49",
"author": "AstroX Network",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
"homepage": "https://github.com/AstroxNetwork/astrox-js",
"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",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"build:watch": "tsc -b --watch",
"bundle": "npm run build",
"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",
"release": "npm publish",
"test": "jest --verbose",
"test:coverage": "jest --verbose --collectCoverage",
"tslint:fix": "npm run lint -- --fix",
"tslint": "tslint --project tsconfig.json --config tslint.json"
},
"dependencies": {
"@astrox/candid": "^0.0.49",
"@astrox/principal": "^0.0.49",
"base64-arraybuffer": "^0.2.0",
"bignumber.js": "^9.0.0",
"borc": "^2.1.1",
"buffer": "^6.0.3",
"js-sha256": "0.9.0",
"simple-cbor": "^0.4.1"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest-expect-message": "^1.0.2",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"tslint": "^5.20.0",
"typedoc": "^0.22.15",
"typescript": "^3.6.3",
"whatwg-fetch": "^3.0.0"
},
"jest": {
"preset": "ts-jest"
},
"gitHead": "8173bb829917c941e37cd038bca972948cc58c5b"
"name": "@astrox/agent",
"version": "0.0.49",
"author": "AstroX Network",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
"homepage": "https://github.com/AstroxNetwork/astrox-js",
"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",
"publishConfig": {
"access": "public"
},
"dependencies": {
"base64-arraybuffer": "^0.2.0",
"bignumber.js": "^9.0.0",
"borc": "^2.1.1",
"buffer": "^6.0.3",
"js-sha256": "0.9.0",
"simple-cbor": "^0.4.1"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest-expect-message": "^1.0.2",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"tslint": "^5.20.0",
"typedoc": "^0.22.15",
"typescript": "^4.2.3",
"whatwg-fetch": "^3.0.0"
},
"jest": {
"preset": "ts-jest"
},
"gitHead": "8173bb829917c941e37cd038bca972948cc58c5b"
}
76 changes: 76 additions & 0 deletions packages/agent/package.json.lerna_backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"name": "@astrox/agent",
"version": "0.0.49",
"author": "AstroX Network",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
"homepage": "https://github.com/AstroxNetwork/astrox-js",
"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",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"build:watch": "tsc -b --watch",
"bundle": "npm run build",
"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",
"release": "npm publish",
"test": "jest --verbose",
"test:coverage": "jest --verbose --collectCoverage",
"tslint:fix": "npm run lint -- --fix",
"tslint": "tslint --project tsconfig.json --config tslint.json"
},
"dependencies": {
"@astrox/candid": "^0.0.49",
"@astrox/principal": "^0.0.49",
"base64-arraybuffer": "^0.2.0",
"bignumber.js": "^9.0.0",
"borc": "^2.1.1",
"buffer": "^6.0.3",
"js-sha256": "0.9.0",
"simple-cbor": "^0.4.1"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^26.0.22",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest-expect-message": "^1.0.2",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"tslint": "^5.20.0",
"typedoc": "^0.22.15",
"typescript": "^4.2.3",
"whatwg-fetch": "^3.0.0"
},
"jest": {
"preset": "ts-jest"
},
"gitHead": "8173bb829917c941e37cd038bca972948cc58c5b"
}
108 changes: 47 additions & 61 deletions packages/auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,49 @@
{
"name": "@astrox/auth-client",
"version": "0.0.49",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity",
"homepage": "https://github.com/AstroxNetwork/astrox-js",
"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",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc -b && tsc -p tsconfig-cjs.json",
"bundle": "npm run build",
"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",
"release": "npm publish",
"test": "jest",
"test:coverage": "jest --verbose --collectCoverage"
},
"devDependencies": {
"@astrox/agent": "^0.0.49",
"@astrox/authentication": "^0.0.49",
"@astrox/identity": "^0.0.49",
"@astrox/principal": "^0.0.49",
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^24.9.1",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest-expect-message": "^1.0.2",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"tslint": "^5.20.0",
"typedoc": "^0.22.15",
"typescript": "^4.2.3",
"whatwg-fetch": "^3.0.0"
},
"gitHead": "8173bb829917c941e37cd038bca972948cc58c5b"
"name": "@astrox/auth-client",
"version": "0.0.49",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity",
"homepage": "https://github.com/AstroxNetwork/astrox-js",
"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",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
"@types/jest": "^24.9.1",
"@typescript-eslint/eslint-plugin": "^4.14.2",
"@typescript-eslint/parser": "^4.14.2",
"eslint": "^7.19.0",
"eslint-plugin-jsdoc": "^31.6.0",
"jest": "^26.6.3",
"jest-expect-message": "^1.0.2",
"text-encoding": "^0.7.0",
"ts-jest": "^26.5.4",
"tslint": "^5.20.0",
"typedoc": "^0.22.15",
"typescript": "^4.2.3",
"whatwg-fetch": "^3.0.0"
},
"gitHead": "8173bb829917c941e37cd038bca972948cc58c5b"
}
Loading

0 comments on commit e09cce0

Please sign in to comment.