@prosopo/account 1.0.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/cjs/common/dist/error.cjs +20 -16
  2. package/dist/cjs/common/dist/hash.cjs +1 -1
  3. package/dist/cjs/common/dist/i18n.cjs +3 -3
  4. package/dist/cjs/common/dist/locales/en.json.cjs +2 -1
  5. package/dist/cjs/common/dist/logger.cjs +23 -11
  6. package/dist/cjs/common/dist/node/UrlConverter.cjs +15 -7
  7. package/dist/cjs/common/dist/utils.cjs +4 -2
  8. package/dist/cjs/detector/src/index.cjs +4586 -0
  9. package/dist/cjs/extension/ExtensionWeb2.cjs +30 -30
  10. package/dist/cjs/extension/ExtensionWeb3.cjs +5 -3
  11. package/dist/cjs/util/dist/at.cjs +3 -0
  12. package/dist/cjs/util/dist/canvas.cjs +15 -9
  13. package/dist/cjs/util/dist/hex.cjs +37 -2
  14. package/dist/cjs/util/dist/index.cjs +1 -0
  15. package/dist/cjs/util/dist/ofLen.cjs +1 -1
  16. package/dist/cjs/util/dist/table.cjs +2 -2
  17. package/dist/cjs/util/dist/util.cjs +1 -1
  18. package/dist/extension/Extension.d.ts +1 -1
  19. package/dist/extension/Extension.d.ts.map +1 -1
  20. package/dist/extension/Extension.js.map +1 -1
  21. package/dist/extension/ExtensionWeb2.d.ts +4 -5
  22. package/dist/extension/ExtensionWeb2.d.ts.map +1 -1
  23. package/dist/extension/ExtensionWeb2.js +27 -36
  24. package/dist/extension/ExtensionWeb2.js.map +1 -1
  25. package/dist/extension/ExtensionWeb3.d.ts +2 -2
  26. package/dist/extension/ExtensionWeb3.d.ts.map +1 -1
  27. package/dist/extension/ExtensionWeb3.js +8 -6
  28. package/dist/extension/ExtensionWeb3.js.map +1 -1
  29. package/dist/index.d.ts +3 -3
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +3 -3
  32. package/dist/index.js.map +1 -1
  33. package/package.json +53 -58
  34. package/vite.cjs.config.ts +3 -3
package/package.json CHANGED
@@ -1,60 +1,55 @@
1
1
  {
2
- "name": "@prosopo/account",
3
- "version": "1.0.2",
4
- "description": "Services and Utils for Prosopo account gen and management",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "engines": {
8
- "node": ">=20",
9
- "npm": ">=9"
10
- },
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.js",
14
- "require": "./dist/cjs/index.cjs"
15
- }
16
- },
17
- "scripts": {
18
- "test": "echo \"No test specified\"",
19
- "clean": "tsc --build --clean",
20
- "build": "tsc --build --verbose tsconfig.json",
21
- "build:cjs": "npx vite --config vite.cjs.config.ts build",
22
- "eslint": "npx eslint . --cache --cache-location ../../node_modules/.cache/eslint/.eslintcache --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore --quiet",
23
- "eslint:fix": "npm run eslint -- --fix",
24
- "prettier": "npx prettier . --cache --cache-location ../../node_modules/.cache/prettier/.prettiercache --check --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore",
25
- "prettier:fix": "npm run prettier -- --write",
26
- "lint": "npm run eslint && npm run prettier",
27
- "lint:fix": "npm run eslint:fix && npm run prettier:fix"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "git+ssh://git@github.com/prosopo/types.git"
32
- },
33
- "author": "Prosopo Limited",
34
- "license": "Apache-2.0",
35
- "bugs": {
36
- "url": "https://github.com/prosopo/captcha/issues"
37
- },
38
- "homepage": "https://github.com/prosopo/captcha#readme",
39
- "dependencies": {
40
- "react": "^18.3.1",
41
- "@fingerprintjs/fingerprintjs": "^3.3.6",
42
- "@polkadot/api": "10.13.1",
43
- "@polkadot/extension-base": "0.46.9",
44
- "@polkadot/extension-dapp": "0.46.9",
45
- "@polkadot/extension-inject": "0.46.9",
46
- "@polkadot/keyring": "12.6.2",
47
- "@polkadot/rpc-provider": "10.13.1",
48
- "@polkadot/util": "12.6.2",
49
- "@polkadot/util-crypto": "12.6.2",
50
- "@prosopo/common": "1.0.2",
51
- "@prosopo/types": "1.0.2",
52
- "@prosopo/util": "1.0.2"
53
- },
54
- "devDependencies": {
55
- "@prosopo/config": "1.0.2",
56
- "tslib": "2.6.2",
57
- "typescript": "5.1.6"
58
- },
59
- "sideEffects": false
2
+ "name": "@prosopo/account",
3
+ "version": "2.0.1",
4
+ "description": "Services and Utils for Prosopo account gen and management",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=20",
9
+ "npm": ">=9"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/cjs/index.cjs"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "test": "echo \"No test specified\"",
19
+ "clean": "tsc --build --clean",
20
+ "build": "tsc --build --verbose",
21
+ "build:cjs": "npx vite --config vite.cjs.config.ts build"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+ssh://git@github.com/prosopo/types.git"
26
+ },
27
+ "author": "Prosopo Limited",
28
+ "license": "Apache-2.0",
29
+ "bugs": {
30
+ "url": "https://github.com/prosopo/captcha/issues"
31
+ },
32
+ "homepage": "https://github.com/prosopo/captcha#readme",
33
+ "dependencies": {
34
+ "react": "^18.3.1",
35
+ "@fingerprintjs/fingerprintjs": "^3.3.6",
36
+ "@polkadot/api": "10.13.1",
37
+ "@polkadot/extension-base": "0.46.9",
38
+ "@polkadot/extension-dapp": "0.46.9",
39
+ "@polkadot/extension-inject": "0.46.9",
40
+ "@polkadot/keyring": "12.6.2",
41
+ "@polkadot/rpc-provider": "10.13.1",
42
+ "@polkadot/util": "12.6.2",
43
+ "@polkadot/util-crypto": "12.6.2",
44
+ "@prosopo/common": "2.0.1",
45
+ "@prosopo/detector": "2.0.1",
46
+ "@prosopo/types": "2.0.1",
47
+ "@prosopo/util": "2.0.1"
48
+ },
49
+ "devDependencies": {
50
+ "@prosopo/config": "2.0.1",
51
+ "tslib": "2.6.2",
52
+ "typescript": "5.1.6"
53
+ },
54
+ "sideEffects": false
60
55
  }
@@ -1,3 +1,4 @@
1
+ import path from "node:path";
1
2
  // Copyright 2021-2024 Prosopo (UK) Ltd.
2
3
  //
3
4
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,9 +12,8 @@
11
12
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
13
  // See the License for the specific language governing permissions and
13
14
  // limitations under the License.
14
- import { ViteCommonJSConfig } from '@prosopo/config'
15
- import path from 'path'
15
+ import { ViteCommonJSConfig } from "@prosopo/config";
16
16
 
17
17
  export default function () {
18
- return ViteCommonJSConfig('util', path.resolve('./tsconfig.cjs.json'))
18
+ return ViteCommonJSConfig("util", path.resolve("./tsconfig.cjs.json"));
19
19
  }