@prosopo/datasets-fs 3.0.102 → 3.0.104

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @prosopo/datasets-fs@3.0.102 build:cjs
2
+ > @prosopo/datasets-fs@3.0.104 build:cjs
3
3
  > NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV
4
4
 
5
5
  ViteCommonJSConfig: .
@@ -14,6 +14,7 @@ ViteCommonJSConfig: .
14
14
  ]
15
15
  }
16
16
  {
17
+ The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
17
18
  externals: [
18
19
  '@prosopo/common',
19
20
  '@prosopo/locale',
@@ -23,15 +24,17 @@ ViteCommonJSConfig: .
23
24
  '@prosopo/util-crypto'
24
25
  ]
25
26
  }
26
- vite v6.4.1 building SSR bundle for production...
27
+ vite v8.1.5 building ssr environment for production...
27
28
  Bundle build started
28
- transforming...
29
- Build end
30
- ✓ 2 modules transformed.
29
+ 
30
+ ✓ 3 modules transformed.
31
31
  rendering chunks...
32
- dist/cjs/index.cjs 0.15 kB
33
- dist/cjs/cli/cli.cjs 1.91 kB
34
- ✓ built in 135ms
32
+ computing gzip size...
33
+ dist/cjs/index.cjs 0.15 kB │ gzip: 0.14 kB
34
+ dist/cjs/_virtual/_rolldown/runtime.cjs 1.00 kB │ gzip: 0.50 kB
35
+ dist/cjs/cli/cli.cjs 1.74 kB │ gzip: 0.81 kB
36
+
37
+ ✓ built in 65ms
35
38
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat/data.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat/data.json
36
39
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat_resized/captchas_v1.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat_resized/captchas_v1.json
37
40
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat_resized/captchas_v2.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat_resized/captchas_v2.json
@@ -1,8 +1,8 @@
1
1
 
2
- > @prosopo/datasets-fs@3.0.102 build:tsc
2
+ > @prosopo/datasets-fs@3.0.104 build:tsc
3
3
  > tsc --build --verbose
4
4
 
5
- 12:17:19 PM - Projects in this build:
5
+ 8:59:15 PM - Projects in this build:
6
6
  * ../../dev/config/tsconfig.json
7
7
  * ../locale/tsconfig.json
8
8
  * ../util/tsconfig.json
@@ -13,23 +13,23 @@
13
13
  * ../../dev/workspace/tsconfig.json
14
14
  * tsconfig.json
15
15
 
16
- 12:17:19 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/index.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
16
+ 8:59:16 PM - Project '../../dev/config/tsconfig.json' is up to date because newest input '../../dev/config/src/webpack/webpack.config.ts' is older than output '../../dev/config/tsconfig.tsbuildinfo'
17
17
 
18
- 12:17:19 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
18
+ 8:59:16 PM - Project '../locale/tsconfig.json' is up to date because newest input '../locale/src/translationKey.ts' is older than output '../locale/tsconfig.tsbuildinfo'
19
19
 
20
- 12:17:20 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
20
+ 8:59:16 PM - Project '../util/tsconfig.json' is up to date because newest input '../util/src/url.ts' is older than output '../util/tsconfig.tsbuildinfo'
21
21
 
22
- 12:17:20 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
22
+ 8:59:16 PM - Project '../logger/tsconfig.json' is up to date because newest input '../logger/src/index.ts' is older than output '../logger/tsconfig.tsbuildinfo'
23
23
 
24
- 12:17:20 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
24
+ 8:59:16 PM - Project '../util-crypto/tsconfig.json' is up to date because newest input '../util-crypto/src/types.ts' is older than output '../util-crypto/tsconfig.tsbuildinfo'
25
25
 
26
- 12:17:20 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
26
+ 8:59:16 PM - Project '../types/tsconfig.json' is up to date because newest input '../types/src/provider/api.ts' is older than output '../types/tsconfig.tsbuildinfo'
27
27
 
28
- 12:17:20 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/index.ts' is older than output '../common/tsconfig.tsbuildinfo'
28
+ 8:59:16 PM - Project '../common/tsconfig.json' is up to date because newest input '../common/src/tests/utils/batches.unit.test.ts' is older than output '../common/tsconfig.tsbuildinfo'
29
29
 
30
- 12:17:20 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/index.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
30
+ 8:59:16 PM - Project '../../dev/workspace/tsconfig.json' is up to date because newest input '../../dev/workspace/src/tests/projectInfo.unit.test.ts' is older than output '../../dev/workspace/tsconfig.tsbuildinfo'
31
31
 
32
- 12:17:20 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
32
+ 8:59:16 PM - Project 'tsconfig.json' is out of date because output file 'tsconfig.tsbuildinfo' does not exist
33
33
 
34
- 12:17:20 PM - Building project '/home/runner/work/captcha/captcha/packages/datasets-fs/tsconfig.json'...
34
+ 8:59:16 PM - Building project '/home/runner/work/captcha/captcha/packages/datasets-fs/tsconfig.json'...
35
35
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @prosopo/datasets-fs@3.0.102 build
2
+ > @prosopo/datasets-fs@3.0.104 build
3
3
  > npm run build:cross-env -- --mode ${NODE_ENV:-development}
4
4
 
5
5
 
6
- > @prosopo/datasets-fs@3.0.102 build:cross-env
6
+ > @prosopo/datasets-fs@3.0.104 build:cross-env
7
7
  > vite build --config vite.esm.config.ts --mode production
8
8
 
9
9
  ViteEsmConfig: .
@@ -27,15 +27,18 @@ ViteEsmConfig: .
27
27
  '@prosopo/util-crypto'
28
28
  ]
29
29
  }
30
- vite v6.4.1 building SSR bundle for production...
30
+ The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.
31
+ vite v8.1.5 building ssr environment for production...
31
32
  Bundle build started
32
- transforming...
33
- Build end
34
- ✓ 2 modules transformed.
33
+ 
34
+ ✓ 3 modules transformed.
35
35
  rendering chunks...
36
- dist/index.js 0.05 kB
37
- dist/cli/cli.js 1.80 kB
38
- ✓ built in 136ms
36
+ computing gzip size...
37
+ dist/_virtual/_rolldown/runtime.js 0.04 kB │ gzip: 0.06 kB
38
+ dist/index.js 0.09 kB │ gzip: 0.09 kB
39
+ dist/cli/cli.js 1.52 kB │ gzip: 0.73 kB
40
+
41
+ ✓ built in 67ms
39
42
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat/data.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat/data.json
40
43
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat_resized/captchas_v1.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat_resized/captchas_v1.json
41
44
  [copy-plugin] copying /home/runner/work/captcha/captcha/packages/datasets-fs/src/tests/data/flat_resized/captchas_v2.json to /home/runner/work/captcha/captcha/packages/datasets-fs/dist/tests/data/flat_resized/captchas_v2.json
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @prosopo/datasets-fs
2
2
 
3
+ ## 3.0.104
4
+ ### Patch Changes
5
+
6
+ - 0e1171c: chore(deps): combined dependabot bumps (lodash, webpack-dev-server, sharp, i18next-http-middleware, actions/setup-node and transitive security updates)
7
+ - e14fce6: chore(deps): bump vite to 6.4.3 and mongoose to 8.24.1, and adjust types for the mongoose 8.24 Document/ObjectId changes
8
+ - Updated dependencies [2c47bb7]
9
+ - Updated dependencies [0e1171c]
10
+ - Updated dependencies [103318c]
11
+ - Updated dependencies [270a8d8]
12
+ - Updated dependencies [e14fce6]
13
+ - Updated dependencies [89effc8]
14
+ - @prosopo/util@3.3.5
15
+ - @prosopo/types@4.10.0
16
+ - @prosopo/common@3.1.48
17
+ - @prosopo/workspace@3.2.0
18
+ - @prosopo/logger@2.0.4
19
+
20
+ ## 3.0.103
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [a0cb39e]
24
+ - @prosopo/types@4.9.12
25
+
3
26
  ## 3.0.102
4
27
  ### Patch Changes
5
28
 
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+ //#endregion
3
+ export {};
@@ -0,0 +1,23 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+ //#endregion
23
+ exports.__toESM = __toESM;
@@ -1,59 +1,49 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const common = require("@prosopo/common");
4
- const logger = require("@prosopo/logger");
5
- const yargs = require("yargs");
6
- const helpers = require("yargs/helpers");
7
- const dirname = process.cwd();
8
- class Cli {
9
- constructor(commands) {
10
- this.logger = logger.getLogger("info", "datasets-fs:cli");
11
- this.#commands = commands;
12
- }
13
- #commands;
14
- config() {
15
- let y = yargs(helpers.hideBin(process.argv)).option("log-level", {
16
- type: "string",
17
- choices: Object.values(logger.LogLevel.options),
18
- default: logger.LogLevel.enum.info,
19
- description: "The log level"
20
- }).middleware((argv) => {
21
- this.logger.setLogLevel(argv.logLevel);
22
- }, true);
23
- for (const command of this.#commands) {
24
- y = y.command({
25
- command: command.getCommandName(),
26
- describe: command.getDescription(),
27
- builder: command.getOptions(),
28
- // biome-ignore lint/suspicious/noExplicitAny: TODO fix
29
- handler: async (argv) => {
30
- this.logger.debug(() => ({
31
- msg: `running ${command.getCommandName()}`
32
- }));
33
- const args = await command.parse(argv);
34
- await command.exec(args);
35
- }
36
- });
37
- }
38
- if (!this.#commands.find((c) => c.getCommandName() === "$0")) {
39
- y = y.command(
40
- "$0",
41
- "default command",
42
- (y2) => y2,
43
- () => {
44
- throw new common.ProsopoCliError("CLI.PARAMETER_ERROR", {
45
- context: { error: "no command specified" }
46
- });
47
- }
48
- );
49
- }
50
- y = y.demandCommand().strict().showHelpOnFail(false, "Specify --help for available options");
51
- return y;
52
- }
53
- async exec(args = process.argv.slice(2)) {
54
- const config = this.config();
55
- this.logger.debug(() => ({ data: { args }, msg: "parsing" }));
56
- await config.parse(args);
57
- }
58
- }
1
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
2
+ let _prosopo_common = require("@prosopo/common");
3
+ let _prosopo_logger = require("@prosopo/logger");
4
+ let yargs = require("yargs");
5
+ yargs = require_runtime.__toESM(yargs, 1);
6
+ let yargs_helpers = require("yargs/helpers");
7
+ process.cwd();
8
+ var Cli = class {
9
+ #commands;
10
+ constructor(commands) {
11
+ this.logger = (0, _prosopo_logger.getLogger)("info", "datasets-fs:cli");
12
+ this.#commands = commands;
13
+ }
14
+ config() {
15
+ let y = (0, yargs.default)((0, yargs_helpers.hideBin)(process.argv)).option("log-level", {
16
+ type: "string",
17
+ choices: Object.values(_prosopo_logger.LogLevel.options),
18
+ default: _prosopo_logger.LogLevel.enum.info,
19
+ description: "The log level"
20
+ }).middleware((argv) => {
21
+ this.logger.setLogLevel(argv.logLevel);
22
+ }, true);
23
+ for (const command of this.#commands) y = y.command({
24
+ command: command.getCommandName(),
25
+ describe: command.getDescription(),
26
+ builder: command.getOptions(),
27
+ handler: async (argv) => {
28
+ this.logger.debug(() => ({ msg: `running ${command.getCommandName()}` }));
29
+ const args = await command.parse(argv);
30
+ await command.exec(args);
31
+ }
32
+ });
33
+ if (!this.#commands.find((c) => c.getCommandName() === "$0")) y = y.command("$0", "default command", (y) => y, () => {
34
+ throw new _prosopo_common.ProsopoCliError("CLI.PARAMETER_ERROR", { context: { error: "no command specified" } });
35
+ });
36
+ y = y.demandCommand().strict().showHelpOnFail(false, "Specify --help for available options");
37
+ return y;
38
+ }
39
+ async exec(args = process.argv.slice(2)) {
40
+ const config = this.config();
41
+ this.logger.debug(() => ({
42
+ data: { args },
43
+ msg: "parsing"
44
+ }));
45
+ await config.parse(args);
46
+ }
47
+ };
48
+ //#endregion
59
49
  exports.Cli = Cli;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const cli = require("./cli/cli.cjs");
4
- exports.Cli = cli.Cli;
2
+ const require_cli = require("./cli/cli.cjs");
3
+ exports.Cli = require_cli.Cli;
package/dist/cli/cli.js CHANGED
@@ -1,59 +1,47 @@
1
1
  import { ProsopoCliError } from "@prosopo/common";
2
- import { getLogger, LogLevel } from "@prosopo/logger";
2
+ import { LogLevel, getLogger } from "@prosopo/logger";
3
3
  import yargs from "yargs";
4
4
  import { hideBin } from "yargs/helpers";
5
- const dirname = process.cwd();
6
- class Cli {
7
- constructor(commands) {
8
- this.logger = getLogger("info", "datasets-fs:cli");
9
- this.#commands = commands;
10
- }
11
- #commands;
12
- config() {
13
- let y = yargs(hideBin(process.argv)).option("log-level", {
14
- type: "string",
15
- choices: Object.values(LogLevel.options),
16
- default: LogLevel.enum.info,
17
- description: "The log level"
18
- }).middleware((argv) => {
19
- this.logger.setLogLevel(argv.logLevel);
20
- }, true);
21
- for (const command of this.#commands) {
22
- y = y.command({
23
- command: command.getCommandName(),
24
- describe: command.getDescription(),
25
- builder: command.getOptions(),
26
- // biome-ignore lint/suspicious/noExplicitAny: TODO fix
27
- handler: async (argv) => {
28
- this.logger.debug(() => ({
29
- msg: `running ${command.getCommandName()}`
30
- }));
31
- const args = await command.parse(argv);
32
- await command.exec(args);
33
- }
34
- });
35
- }
36
- if (!this.#commands.find((c) => c.getCommandName() === "$0")) {
37
- y = y.command(
38
- "$0",
39
- "default command",
40
- (y2) => y2,
41
- () => {
42
- throw new ProsopoCliError("CLI.PARAMETER_ERROR", {
43
- context: { error: "no command specified" }
44
- });
45
- }
46
- );
47
- }
48
- y = y.demandCommand().strict().showHelpOnFail(false, "Specify --help for available options");
49
- return y;
50
- }
51
- async exec(args = process.argv.slice(2)) {
52
- const config = this.config();
53
- this.logger.debug(() => ({ data: { args }, msg: "parsing" }));
54
- await config.parse(args);
55
- }
56
- }
57
- export {
58
- Cli
5
+ process.cwd();
6
+ var Cli = class {
7
+ #commands;
8
+ constructor(commands) {
9
+ this.logger = getLogger("info", "datasets-fs:cli");
10
+ this.#commands = commands;
11
+ }
12
+ config() {
13
+ let y = yargs(hideBin(process.argv)).option("log-level", {
14
+ type: "string",
15
+ choices: Object.values(LogLevel.options),
16
+ default: LogLevel.enum.info,
17
+ description: "The log level"
18
+ }).middleware((argv) => {
19
+ this.logger.setLogLevel(argv.logLevel);
20
+ }, true);
21
+ for (const command of this.#commands) y = y.command({
22
+ command: command.getCommandName(),
23
+ describe: command.getDescription(),
24
+ builder: command.getOptions(),
25
+ handler: async (argv) => {
26
+ this.logger.debug(() => ({ msg: `running ${command.getCommandName()}` }));
27
+ const args = await command.parse(argv);
28
+ await command.exec(args);
29
+ }
30
+ });
31
+ if (!this.#commands.find((c) => c.getCommandName() === "$0")) y = y.command("$0", "default command", (y) => y, () => {
32
+ throw new ProsopoCliError("CLI.PARAMETER_ERROR", { context: { error: "no command specified" } });
33
+ });
34
+ y = y.demandCommand().strict().showHelpOnFail(false, "Specify --help for available options");
35
+ return y;
36
+ }
37
+ async exec(args = process.argv.slice(2)) {
38
+ const config = this.config();
39
+ this.logger.debug(() => ({
40
+ data: { args },
41
+ msg: "parsing"
42
+ }));
43
+ await config.parse(args);
44
+ }
59
45
  };
46
+ //#endregion
47
+ export { Cli };
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
+ import "./_virtual/_rolldown/runtime.js";
1
2
  import { Cli } from "./cli/cli.js";
2
- export {
3
- Cli
4
- };
3
+ export { Cli };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/datasets-fs",
3
- "version": "3.0.102",
3
+ "version": "3.0.104",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -30,24 +30,24 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@noble/hashes": "1.8.0",
33
- "@prosopo/common": "3.1.47",
34
- "@prosopo/logger": "2.0.3",
35
- "@prosopo/types": "4.9.11",
36
- "@prosopo/util": "3.3.4",
33
+ "@prosopo/common": "3.1.48",
34
+ "@prosopo/logger": "2.0.4",
35
+ "@prosopo/types": "4.10.0",
36
+ "@prosopo/util": "3.3.5",
37
37
  "@prosopo/util-crypto": "13.5.30",
38
- "@prosopo/workspace": "3.1.20",
38
+ "@prosopo/workspace": "3.2.0",
39
39
  "bcrypt": "6.0.0",
40
40
  "cli-progress": "3.12.0",
41
- "sharp": "0.33.5",
41
+ "sharp": "0.35.3",
42
42
  "yargs": "17.7.2",
43
43
  "zod": "3.23.8"
44
44
  },
45
45
  "devDependencies": {
46
- "@prosopo/config": "3.3.4",
46
+ "@prosopo/config": "3.3.5",
47
47
  "@types/bcrypt": "5.0.2",
48
48
  "@types/cli-progress": "3.11.6",
49
49
  "@types/node": "22.10.2",
50
- "@vitest/coverage-v8": "3.2.4",
50
+ "@vitest/coverage-v8": "4.1.10",
51
51
  "concurrently": "9.0.1",
52
52
  "del-cli": "6.0.0",
53
53
  "dotenv": "16.4.5",
@@ -55,8 +55,8 @@
55
55
  "tslib": "2.7.0",
56
56
  "tsx": "4.20.3",
57
57
  "typescript": "5.6.2",
58
- "vite": "6.4.1",
59
- "vitest": "3.2.4"
58
+ "vite": "8.1.5",
59
+ "vitest": "4.1.10"
60
60
  },
61
61
  "repository": {
62
62
  "type": "git",