@prosopo/scripts 3.1.199 → 3.1.201
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.
- package/.turbo/turbo-build$colon$cjs.log +1 -1
- package/.turbo/turbo-build$colon$tsc.log +32 -32
- package/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +26 -0
- package/package.json +9 -10
- package/tsconfig.cjs.json +0 -3
- package/dist/scripts/findUnused.d.ts +0 -2
- package/dist/scripts/findUnused.d.ts.map +0 -1
- package/dist/scripts/findUnused.js +0 -80
- package/dist/scripts/findUnused.js.map +0 -1
- package/dist/scripts/testImport.d.ts +0 -2
- package/dist/scripts/testImport.d.ts.map +0 -1
- package/dist/scripts/testImport.js +0 -13
- package/dist/scripts/testImport.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
$ tsc --build --verbose
|
|
2
|
-
|
|
2
|
+
8:26:28 PM - Projects in this build:
|
|
3
3
|
* ../config/tsconfig.json
|
|
4
4
|
* ../../packages/util/tsconfig.json
|
|
5
5
|
* ../../packages/locale/tsconfig.json
|
|
@@ -31,65 +31,65 @@ $ tsc --build --verbose
|
|
|
31
31
|
* ../../packages/cli/tsconfig.json
|
|
32
32
|
* tsconfig.json
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
8:26:28 PM - Project '../config/tsconfig.json' is up to date because newest input '../config/src/webpack/webpack.config.ts' is older than output '../config/tsconfig.tsbuildinfo'
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
8:26:28 PM - Project '../../packages/util/tsconfig.json' is up to date because newest input '../../packages/util/src/version.ts' is older than output '../../packages/util/tsconfig.tsbuildinfo'
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
8:26:28 PM - Project '../../packages/locale/tsconfig.json' is up to date because newest input '../../packages/locale/src/translationKey.ts' is older than output '../../packages/locale/tsconfig.tsbuildinfo'
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
8:26:28 PM - Project '../../packages/util-crypto/tsconfig.json' is up to date because newest input '../../packages/util-crypto/src/types.ts' is older than output '../../packages/util-crypto/tsconfig.tsbuildinfo'
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
8:26:28 PM - Project '../../packages/types/tsconfig.json' is up to date because newest input '../../packages/types/src/types.test-d.ts' is older than output '../../packages/types/tsconfig.tsbuildinfo'
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
8:26:28 PM - Project '../../packages/api/tsconfig.json' is up to date because newest input '../../packages/api/src/tests/apiHarness.ts' is older than output '../../packages/api/tsconfig.tsbuildinfo'
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
8:26:28 PM - Project '../../packages/logger/tsconfig.json' is up to date because newest input '../../packages/logger/src/index.ts' is older than output '../../packages/logger/tsconfig.tsbuildinfo'
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
8:26:28 PM - Project '../../packages/common/tsconfig.json' is up to date because newest input '../../packages/common/src/tests/utils/objectUtils.unit.test.ts' is older than output '../../packages/common/tsconfig.tsbuildinfo'
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
8:26:28 PM - Project '../../packages/dotenv/tsconfig.json' is up to date because newest input '../../packages/dotenv/src/env.ts' is older than output '../../packages/dotenv/tsconfig.tsbuildinfo'
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
8:26:28 PM - Project '../../packages/ipinfo/tsconfig.json' is up to date because newest input '../../packages/ipinfo/src/types.ts' is older than output '../../packages/ipinfo/tsconfig.tsbuildinfo'
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
8:26:28 PM - Project '../../packages/api-route/tsconfig.json' is up to date because newest input '../../packages/api-route/src/tests/apiRoute.unit.test.ts' is older than output '../../packages/api-route/tsconfig.tsbuildinfo'
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
8:26:28 PM - Project '../../packages/redis-client/tsconfig.json' is up to date because newest input '../../packages/redis-client/src/index.ts' is older than output '../../packages/redis-client/tsconfig.tsbuildinfo'
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
8:26:28 PM - Project '../../packages/user-access-policy/tsconfig.json' is up to date because newest input '../../packages/user-access-policy/src/ruleRecord.ts' is older than output '../../packages/user-access-policy/tsconfig.tsbuildinfo'
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
8:26:28 PM - Project '../../packages/types-database/tsconfig.json' is up to date because newest input '../../packages/types-database/src/index.ts' is older than output '../../packages/types-database/tsconfig.tsbuildinfo'
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
8:26:28 PM - Project '../../packages/database/tsconfig.json' is up to date because newest input '../../packages/database/src/tests/mongoGlobalSetup.ts' is older than output '../../packages/database/tsconfig.tsbuildinfo'
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
8:26:28 PM - Project '../../packages/keyring/tsconfig.json' is up to date because newest input '../../packages/keyring/src/pair/decode.ts' is older than output '../../packages/keyring/tsconfig.tsbuildinfo'
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
8:26:28 PM - Project '../../packages/types-env/tsconfig.json' is up to date because newest input '../../packages/types-env/src/index.ts' is older than output '../../packages/types-env/tsconfig.tsbuildinfo'
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
8:26:28 PM - Project '../../packages/env/tsconfig.json' is up to date because newest input '../../packages/env/src/env.ts' is older than output '../../packages/env/tsconfig.tsbuildinfo'
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
8:26:28 PM - Project '../../packages/api-express-router/tsconfig.json' is up to date because newest input '../../packages/api-express-router/src/tests/unit/apiExpressDefaultEndpointAdapter.unit.test.ts' is older than output '../../packages/api-express-router/tsconfig.tsbuildinfo'
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
8:26:28 PM - Project '../../packages/puzzle-assets/tsconfig.json' is up to date because newest input '../../packages/puzzle-assets/src/browser.ts' is older than output '../../packages/puzzle-assets/tsconfig.tsbuildinfo'
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
8:26:28 PM - Project '../../packages/audio-assets/tsconfig.json' is up to date because newest input '../../packages/audio-assets/src/encode.ts' is older than output '../../packages/audio-assets/tsconfig.tsbuildinfo'
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
8:26:28 PM - Project '../../packages/captcha-severity/tsconfig.json' is up to date because newest input '../../packages/captcha-severity/src/index.test.ts' is older than output '../../packages/captcha-severity/tsconfig.tsbuildinfo'
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
8:26:28 PM - Project '../../packages/datasets/tsconfig.json' is up to date because newest input '../../packages/datasets/src/tests/mocks/data/captchas.ts' is older than output '../../packages/datasets/tsconfig.tsbuildinfo'
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
8:26:28 PM - Project '../../packages/icon-order-assets/tsconfig.json' is up to date because newest input '../../packages/icon-order-assets/src/background.ts' is older than output '../../packages/icon-order-assets/tsconfig.tsbuildinfo'
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
8:26:28 PM - Project '../../packages/load-balancer/tsconfig.json' is up to date because newest input '../../packages/load-balancer/src/developmentProviderUrl.ts' is older than output '../../packages/load-balancer/tsconfig.tsbuildinfo'
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
8:26:28 PM - Project '../../packages/web-bot-auth/tsconfig.json' is up to date because newest input '../../packages/web-bot-auth/src/index.ts' is older than output '../../packages/web-bot-auth/tsconfig.tsbuildinfo'
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
8:26:28 PM - Project '../../packages/provider/tsconfig.json' is up to date because newest input '../../packages/provider/src/utils/devicePlatform.ts' is older than output '../../packages/provider/tsconfig.tsbuildinfo'
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
8:26:28 PM - Project '../workspace/tsconfig.json' is up to date because newest input '../workspace/src/projectInfo.ts' is older than output '../workspace/tsconfig.tsbuildinfo'
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
8:26:29 PM - Project '../../packages/cli/tsconfig.json' is up to date because newest input '../../packages/cli/src/files.ts' is older than output '../../packages/cli/tsconfig.tsbuildinfo'
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
8:26:29 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
8:26:29 PM - Building project '/home/runner/work/captcha/captcha/dev/scripts/tsconfig.json'...
|
|
95
95
|
|
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @prosopo/scripts
|
|
2
2
|
|
|
3
|
+
## 3.1.201
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- f8eddf7: Split each language's catalogue into `widget.json`, `target.json` and `translation.json`. The widget bundles English and downloads only the active language's `widget.json`. The provider loads all three. Server i18n now finishes loading every file before it reports ready. Removed two broken, unused scripts (`findUnused`, `testImport`) and the dependencies only they used.
|
|
7
|
+
- Updated dependencies [f8eddf7]
|
|
8
|
+
- Updated dependencies [aec7857]
|
|
9
|
+
- Updated dependencies [0bd0230]
|
|
10
|
+
- Updated dependencies [6b11b15]
|
|
11
|
+
- @prosopo/types@5.16.0
|
|
12
|
+
- @prosopo/common@3.2.0
|
|
13
|
+
- @prosopo/provider@5.19.0
|
|
14
|
+
- @prosopo/cli@3.8.31
|
|
15
|
+
- @prosopo/datasets@3.2.5
|
|
16
|
+
- @prosopo/env@3.6.74
|
|
17
|
+
- @prosopo/keyring@2.10.5
|
|
18
|
+
- @prosopo/types-env@2.11.20
|
|
19
|
+
|
|
20
|
+
## 3.1.200
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [460ca67]
|
|
24
|
+
- @prosopo/provider@5.18.0
|
|
25
|
+
- @prosopo/cli@3.8.30
|
|
26
|
+
- @prosopo/env@3.6.73
|
|
27
|
+
- @prosopo/types-env@2.11.19
|
|
28
|
+
|
|
3
29
|
## 3.1.199
|
|
4
30
|
### Patch Changes
|
|
5
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/scripts",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.201",
|
|
4
4
|
"description": "Dev scripts for working with prosopo packages",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,17 +21,16 @@
|
|
|
21
21
|
"@iarna/toml": "2.2.5",
|
|
22
22
|
"@polkadot/util": "14.0.3",
|
|
23
23
|
"@polkadot/util-crypto": "14.0.3",
|
|
24
|
-
"@prosopo/cli": "3.8.
|
|
25
|
-
"@prosopo/common": "3.
|
|
24
|
+
"@prosopo/cli": "3.8.31",
|
|
25
|
+
"@prosopo/common": "3.2.0",
|
|
26
26
|
"@prosopo/logger": "2.1.4",
|
|
27
|
-
"@prosopo/datasets": "3.2.
|
|
27
|
+
"@prosopo/datasets": "3.2.5",
|
|
28
28
|
"@prosopo/dotenv": "3.0.61",
|
|
29
|
-
"@prosopo/env": "3.6.
|
|
30
|
-
"@prosopo/keyring": "2.10.
|
|
31
|
-
"@prosopo/
|
|
32
|
-
"@prosopo/
|
|
33
|
-
"@prosopo/types": "
|
|
34
|
-
"@prosopo/types-env": "2.11.18",
|
|
29
|
+
"@prosopo/env": "3.6.74",
|
|
30
|
+
"@prosopo/keyring": "2.10.5",
|
|
31
|
+
"@prosopo/provider": "5.19.0",
|
|
32
|
+
"@prosopo/types": "5.16.0",
|
|
33
|
+
"@prosopo/types-env": "2.11.20",
|
|
35
34
|
"@prosopo/util": "3.3.15",
|
|
36
35
|
"@prosopo/util-crypto": "13.6.0",
|
|
37
36
|
"@prosopo/workspace": "3.2.3",
|
package/tsconfig.cjs.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findUnused.d.ts","sourceRoot":"","sources":["../../src/scripts/findUnused.ts"],"names":[],"mappings":""}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Languages } from "@prosopo/locale";
|
|
2
|
-
const REPO_DIR = "/home/chris/dev/prosopo/captcha-private/captcha";
|
|
3
|
-
import fs from "node:fs";
|
|
4
|
-
import { getRootDir } from "@prosopo/workspace";
|
|
5
|
-
import fg from "fast-glob";
|
|
6
|
-
import json from "../../../../packages/locale/src/locales/en/translation.json" with {
|
|
7
|
-
type: "json"
|
|
8
|
-
};
|
|
9
|
-
const findUsedKeys = (jsonPath, projectPath, usedKeys = []) => {
|
|
10
|
-
const keys = Object.keys(json).reduce((acc, section) => {
|
|
11
|
-
if (typeof json[section] !== "object")
|
|
12
|
-
return acc;
|
|
13
|
-
const sectionKeys = Object.keys(json[section]).map((key) => `${section}.${key}`);
|
|
14
|
-
return acc.concat(sectionKeys);
|
|
15
|
-
}, []);
|
|
16
|
-
console.log("projectPath", projectPath);
|
|
17
|
-
const searchPaths = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"];
|
|
18
|
-
const currentPath = getRootDir();
|
|
19
|
-
const files = fg
|
|
20
|
-
.sync(searchPaths, {
|
|
21
|
-
cwd: currentPath,
|
|
22
|
-
absolute: true,
|
|
23
|
-
ignore: [
|
|
24
|
-
"**/node_modules/**",
|
|
25
|
-
"**/cargo-cache/**",
|
|
26
|
-
"**/dist/**",
|
|
27
|
-
"**/target/**",
|
|
28
|
-
"**/coverage/**",
|
|
29
|
-
"**/vite.cjs.config.ts.timestamp*",
|
|
30
|
-
"**/js_bundles_host_temp/**",
|
|
31
|
-
"**/client-bundle-example/src/assets/**",
|
|
32
|
-
"**/next-env.d.ts/**",
|
|
33
|
-
],
|
|
34
|
-
})
|
|
35
|
-
.filter((file) => fs.lstatSync(file).isFile());
|
|
36
|
-
for (const file of files) {
|
|
37
|
-
console.log(file);
|
|
38
|
-
if (file === "node_modules")
|
|
39
|
-
return;
|
|
40
|
-
const filePath = file;
|
|
41
|
-
const stat = fs.statSync(filePath);
|
|
42
|
-
if (stat.isDirectory()) {
|
|
43
|
-
usedKeys = findUsedKeys(jsonPath, filePath, usedKeys);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
const content = fs.readFileSync(filePath, "utf8");
|
|
47
|
-
for (const key of keys) {
|
|
48
|
-
if (usedKeys.includes(key))
|
|
49
|
-
continue;
|
|
50
|
-
if (content.indexOf(key) !== -1) {
|
|
51
|
-
usedKeys.push(key);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return usedKeys;
|
|
57
|
-
};
|
|
58
|
-
const removeUnusedKeys = (jsonPath, projectPath) => {
|
|
59
|
-
const usedKeys = findUsedKeys(json, "/home/dev/chris/prosopo/captcha-private/captcha");
|
|
60
|
-
const unusedKeys = Object.keys(json)
|
|
61
|
-
.reduce((acc, section) => {
|
|
62
|
-
if (typeof json[section] !== "object")
|
|
63
|
-
return acc;
|
|
64
|
-
const sectionKeys = Object.keys(json[section]).map((key) => `${section}.${key}`);
|
|
65
|
-
return acc.concat(sectionKeys);
|
|
66
|
-
}, [])
|
|
67
|
-
.filter((key) => !usedKeys.includes(key));
|
|
68
|
-
console.info("Unused keys:", Array.from(new Set(unusedKeys)));
|
|
69
|
-
for (const lang of Object.values(Languages)) {
|
|
70
|
-
const langJsonPath = jsonPath.replace("en", lang);
|
|
71
|
-
const langJson = JSON.parse(fs.readFileSync(langJsonPath, "utf8"));
|
|
72
|
-
for (const key of unusedKeys) {
|
|
73
|
-
const [section, keyName] = key.split(".");
|
|
74
|
-
delete langJson[section][keyName];
|
|
75
|
-
}
|
|
76
|
-
fs.writeFileSync(langJsonPath, JSON.stringify(langJson, null, 2));
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
removeUnusedKeys(`${REPO_DIR}/packages/locale/src/locales/en/translation.json`, REPO_DIR);
|
|
80
|
-
//# sourceMappingURL=findUnused.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findUnused.js","sourceRoot":"","sources":["../../src/scripts/findUnused.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,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@
|
|
|
1
|
-
{"version":3,"file":"testImport.d.ts","sourceRoot":"","sources":["../../src/scripts/testImport.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const getLang = async (language) => {
|
|
2
|
-
console.log("Getting language", language);
|
|
3
|
-
return (await import(`@prosopo/locale/locales/${language}`)).default;
|
|
4
|
-
};
|
|
5
|
-
getLang("en")
|
|
6
|
-
.then((lang) => {
|
|
7
|
-
console.log(lang);
|
|
8
|
-
})
|
|
9
|
-
.catch((err) => {
|
|
10
|
-
console.error(err);
|
|
11
|
-
});
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=testImport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testImport.js","sourceRoot":"","sources":["../../src/scripts/testImport.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,GAAG,KAAK,EAAE,QAAgB,EAAE,EAAE;IAC1C,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;IAE1C,OAAO,CAAC,MAAM,MAAM,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;AACtE,CAAC,CAAC;AAEF,OAAO,CAAC,IAAI,CAAC;KACX,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;IACd,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
|