@cjhd/cj-decimal 1.1.2 → 1.2.0

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/.cj-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema": "cj-package-v1",
3
3
  "name": "@cjhd/cj-decimal",
4
- "version": "1.1.2",
4
+ "version": "1.2.0",
5
5
  "payloadManifest": "encrypted-payload/manifest.json",
6
6
  "entry": "index.js",
7
7
  "assetsDir": "assets",
package/assets/Decimal.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function __cjLicenseError() {
2
- throw new Error("[CJHD License] Runtime package is not unlocked. Expected license file: extensions/pkg/node_modules/@cjhd/cj-cocos-license/bin/cj-runtime-license.json. Then run: node extensions/pkg/node_modules/@cjhd/cj-cocos-license/bin/cj-license.js --mode install --force");
2
+ throw new Error("[CJHD License] Runtime package is not unlocked. Install @cjhd/cj-cocos-license as an editor extension, import a license, then run: node extensions/cj-cocos-license/dist/cli.js install --project . --pkg-root extensions/pkg --force");
3
3
  }
4
4
 
5
5
  export class Decimal { constructor() { __cjLicenseError(); } }
@@ -1 +1,2 @@
1
- a���ケǷ������� �`��٣�g'E�| Kʱ`� `َ[|I�
1
+ Kqv[
2
+ ~
@@ -1,29 +1,29 @@
1
1
  {
2
2
  "schema": "cj-encrypted-payload-v1",
3
3
  "packageName": "@cjhd/cj-decimal",
4
- "packageVersion": "1.1.2",
4
+ "packageVersion": "1.2.0",
5
5
  "algorithm": "AES-256-GCM",
6
6
  "kdf": "HKDF-SHA256",
7
7
  "sourceHash": "ef241625808b93480b2c4e880901e9b8345081fef968b4f4f6669a25bda2cd77",
8
- "payloadHash": "d6921a00f2e48c3faa51fa369d82d5aa5d45f9463aba87c57ee9f00d698eb926",
8
+ "payloadHash": "bd0fbb0634e476954840d52cdb4106d77bf4fd82d85d1cadd8dcf8ae5616b5eb",
9
9
  "files": [
10
10
  {
11
11
  "out": "assets/Decimal.js",
12
12
  "bin": "files/assets__Decimal.js.bin",
13
- "iv": "cRNtEXix0DUozEka",
14
- "authTag": "sMMEmUaAqR8Z6W8cO3Ej5A==",
13
+ "iv": "dsO0EIJO1zTdD5jk",
14
+ "authTag": "uM2CstgZwUlz0gGqVn+Sww==",
15
15
  "sha256": "c920e2ec189a291f8afab44929faf901d018c11c7f9d49cf14467f9c9f7646e5"
16
16
  },
17
17
  {
18
18
  "out": "index.js",
19
19
  "bin": "files/index.js.bin",
20
- "iv": "qz7+q4JWi8k9IT0/",
21
- "authTag": "7wQ5pZBy5H1E+oqqjG7juQ==",
20
+ "iv": "duuQdTZ+h9jnJmyi",
21
+ "authTag": "fHv4//G4mZK0TrYF6njqXQ==",
22
22
  "sha256": "1f4ad00b8da4e8d0a211500507f63f6031ccfb0fb89d2c0e4d8184fc6d1cfa05"
23
23
  }
24
24
  ],
25
25
  "publicExports": [
26
26
  "Decimal"
27
27
  ],
28
- "createdAt": "2026-05-20T02:39:02.234Z"
28
+ "createdAt": "2026-05-20T06:11:14.076Z"
29
29
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  function __cjLicenseError() {
2
- throw new Error("[CJHD License] Runtime package is not unlocked. Expected license file: extensions/pkg/node_modules/@cjhd/cj-cocos-license/bin/cj-runtime-license.json. Then run: node extensions/pkg/node_modules/@cjhd/cj-cocos-license/bin/cj-license.js --mode install --force");
2
+ throw new Error("[CJHD License] Runtime package is not unlocked. Install @cjhd/cj-cocos-license as an editor extension, import a license, then run: node extensions/cj-cocos-license/dist/cli.js install --project . --pkg-root extensions/pkg --force");
3
3
  }
4
4
 
5
5
  export { Decimal } from './assets/Decimal.js';
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@cjhd/cj-decimal",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "定点数学计算模块",
5
5
  "main": "./index.js",
6
- "scripts": {
7
- "postinstall": "node ./bin/package-postinstall.js"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "https://gitee.com/cocos2d-zp/cococs-creator-frame-3d"
@@ -26,6 +23,12 @@
26
23
  "import": "./index.js",
27
24
  "default": "./index.js"
28
25
  },
26
+ "./index.js": {
27
+ "types": "./index.d.ts",
28
+ "browser": "./index.js",
29
+ "import": "./index.js",
30
+ "default": "./index.js"
31
+ },
29
32
  "./assets/*": {
30
33
  "types": "./assets/*.d.ts",
31
34
  "browser": "./assets/*.js",
@@ -42,16 +45,7 @@
42
45
  "assets/**/*.d.ts",
43
46
  "assets/**/*.js",
44
47
  "encrypted-payload/**",
45
- "bin/**",
46
48
  ".cj-package.json"
47
49
  ],
48
- "dependencies": {},
49
- "peerDependencies": {
50
- "@cjhd/cj-cocos-license": "^1.0.0"
51
- },
52
- "peerDependenciesMeta": {
53
- "@cjhd/cj-cocos-license": {
54
- "optional": true
55
- }
56
- }
50
+ "dependencies": {}
57
51
  }
@@ -1,32 +0,0 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
3
- import childProcess from 'node:child_process';
4
- import { fileURLToPath } from 'node:url';
5
-
6
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
7
- const packageRoot = path.resolve(__dirname, '..');
8
- const cjhdRoot = path.dirname(packageRoot);
9
- const pkgRoot = path.resolve(cjhdRoot, '../..');
10
- const cli = path.join(cjhdRoot, 'cj-cocos-license', 'bin', 'cj-license.js');
11
-
12
- if (!fs.existsSync(cli)) {
13
- console.warn('[CJHD License] @cjhd/cj-cocos-license is not installed; keeping unauthorized stubs.');
14
- process.exit(0);
15
- }
16
-
17
- const result = childProcess.spawnSync(process.execPath, [
18
- cli,
19
- '--mode',
20
- 'install',
21
- '--soft',
22
- '--pkg-root',
23
- pkgRoot
24
- ], {
25
- cwd: pkgRoot,
26
- stdio: 'inherit',
27
- shell: false
28
- });
29
-
30
- if (result.status !== 0) {
31
- console.warn('[CJHD License] install unlock check did not complete; keeping unauthorized stubs.');
32
- }