@pixzle/node 0.0.19 → 0.0.21

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/dist/utils.js ADDED
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.generateManifestId = generateManifestId;
7
+ const node_crypto_1 = __importDefault(require("node:crypto"));
8
+ /**
9
+ * Generate a unique manifest ID
10
+ * @returns A UUID string
11
+ */
12
+ function generateManifestId() {
13
+ return node_crypto_1.default.randomUUID();
14
+ }
15
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;AAMA,gDAEC;AARD,8DAAiC;AAEjC;;;GAGG;AACH,SAAgB,kBAAkB;IAChC,OAAO,qBAAM,CAAC,UAAU,EAAE,CAAC;AAC7B,CAAC"}
package/package.json CHANGED
@@ -1,23 +1,9 @@
1
1
  {
2
2
  "name": "@pixzle/node",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Node.js implementation of image fragmentation and restoration",
5
- "type": "module",
6
- "main": "dist/cjs/index.js",
7
- "module": "dist/esm/index.js",
8
- "types": "dist/esm/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": {
12
- "types": "./dist/esm/index.d.ts",
13
- "default": "./dist/esm/index.js"
14
- },
15
- "require": {
16
- "types": "./dist/cjs/index.d.ts",
17
- "default": "./dist/cjs/index.js"
18
- }
19
- }
20
- },
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
21
7
  "files": [
22
8
  "dist"
23
9
  ],
@@ -35,7 +21,7 @@
35
21
  "dependencies": {
36
22
  "@tuki0918/seeded-shuffle": "^1.0.0",
37
23
  "jimp": "^1.6.0",
38
- "@pixzle/core": "0.0.19"
24
+ "@pixzle/core": "0.0.21"
39
25
  },
40
26
  "devDependencies": {
41
27
  "@types/node": "^22.10.2",
@@ -44,10 +30,9 @@
44
30
  "vitest": "^3.1.4"
45
31
  },
46
32
  "scripts": {
47
- "build": "pnpm run build:esm && pnpm run build:cjs",
48
- "build:esm": "tsc -p tsconfig.build.json --outDir dist/esm --module ES2022 --moduleResolution bundler",
49
- "build:cjs": "tsc -p tsconfig.build.json --outDir dist/cjs --module CommonJS --moduleResolution node && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
33
+ "build": "tsc -p tsconfig.build.json",
50
34
  "build:check": "tsc -p tsconfig.build.json --noEmit",
51
- "test": "vitest"
35
+ "test": "vitest run",
36
+ "test:watch": "vitest"
52
37
  }
53
38
  }