@cjhd/cj-decimal 1.2.0 → 1.2.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.
package/.cj-package.json
CHANGED
package/assets/Decimal.js
CHANGED
|
@@ -1,6 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
// CJHD editor-safe runtime stub. Generated by cj-cocos-license.
|
|
2
|
+
|
|
3
|
+
const __cjSafeValue = new Proxy(function __cjSafeValue() {}, {
|
|
4
|
+
get(target, key) {
|
|
5
|
+
if (key === Symbol.toPrimitive) return function () { return 0; };
|
|
6
|
+
if (key === 'valueOf') return function () { return 0; };
|
|
7
|
+
if (key === 'toString') return function () { return '[CJHD editor-safe stub]'; };
|
|
8
|
+
return __cjSafeValue;
|
|
9
|
+
},
|
|
10
|
+
apply() { return __cjSafeValue; },
|
|
11
|
+
construct() { return __cjSafeValue; },
|
|
12
|
+
});
|
|
4
13
|
|
|
5
|
-
export class Decimal {
|
|
6
|
-
|
|
14
|
+
export class Decimal {
|
|
15
|
+
constructor(...args) {}
|
|
16
|
+
static get accuracy() { return __cjSafeValue; }
|
|
17
|
+
static get PI() { return __cjSafeValue; }
|
|
18
|
+
static get PI_HALF() { return __cjSafeValue; }
|
|
19
|
+
static get DEG_TO_RAD() { return __cjSafeValue; }
|
|
20
|
+
static get RAD_TO_DEG() { return __cjSafeValue; }
|
|
21
|
+
static get zero() { return __cjSafeValue; }
|
|
22
|
+
static get ZERO() { return __cjSafeValue; }
|
|
23
|
+
static get one() { return __cjSafeValue; }
|
|
24
|
+
static get ONE() { return __cjSafeValue; }
|
|
25
|
+
static get two() { return __cjSafeValue; }
|
|
26
|
+
static get TWO() { return __cjSafeValue; }
|
|
27
|
+
static get MINUS() { return __cjSafeValue; }
|
|
28
|
+
static get NaN() { return __cjSafeValue; }
|
|
29
|
+
static set accuracy(_value) {}
|
|
30
|
+
static copy(...args) { return __cjSafeValue; }
|
|
31
|
+
static createInt(...args) { return __cjSafeValue; }
|
|
32
|
+
static createFloat(...args) { return __cjSafeValue; }
|
|
33
|
+
static create(...args) { return __cjSafeValue; }
|
|
34
|
+
static max(...args) { return __cjSafeValue; }
|
|
35
|
+
static min(...args) { return __cjSafeValue; }
|
|
36
|
+
static radiansToDegrees(...args) { return __cjSafeValue; }
|
|
37
|
+
static degreesToRadians(...args) { return __cjSafeValue; }
|
|
38
|
+
static sin(...args) { return __cjSafeValue; }
|
|
39
|
+
static cos(...args) { return __cjSafeValue; }
|
|
40
|
+
static tan(...args) { return __cjSafeValue; }
|
|
41
|
+
static asin(...args) { return __cjSafeValue; }
|
|
42
|
+
static acos(...args) { return __cjSafeValue; }
|
|
43
|
+
static atan(...args) { return __cjSafeValue; }
|
|
44
|
+
static atan2(...args) { return __cjSafeValue; }
|
|
45
|
+
get sign() { return __cjSafeValue; }
|
|
46
|
+
get v1() { return __cjSafeValue; }
|
|
47
|
+
get v2() { return __cjSafeValue; }
|
|
48
|
+
set value(_value) {}
|
|
49
|
+
bindMutationObserver(...args) { return __cjSafeValue; }
|
|
50
|
+
beginMutationBatch(...args) { return __cjSafeValue; }
|
|
51
|
+
endMutationBatch(...args) { return __cjSafeValue; }
|
|
52
|
+
runMutationBatch(...args) { return __cjSafeValue; }
|
|
53
|
+
runSilentMutation(...args) { return __cjSafeValue; }
|
|
54
|
+
setSilent(...args) { return __cjSafeValue; }
|
|
55
|
+
copySilent(...args) { return __cjSafeValue; }
|
|
56
|
+
setFloat(...args) { return __cjSafeValue; }
|
|
57
|
+
setInt(...args) { return __cjSafeValue; }
|
|
58
|
+
copy(...args) { return __cjSafeValue; }
|
|
59
|
+
toNumber(...args) { return __cjSafeValue; }
|
|
60
|
+
toString(...args) { return __cjSafeValue; }
|
|
61
|
+
toBigInt(...args) { return __cjSafeValue; }
|
|
62
|
+
isZero(...args) { return false; }
|
|
63
|
+
isNegative(...args) { return false; }
|
|
64
|
+
isNaN(...args) { return false; }
|
|
65
|
+
clone(...args) { return __cjSafeValue; }
|
|
66
|
+
floor(...args) { return __cjSafeValue; }
|
|
67
|
+
ceil(...args) { return __cjSafeValue; }
|
|
68
|
+
round(...args) { return __cjSafeValue; }
|
|
69
|
+
abs(...args) { return __cjSafeValue; }
|
|
70
|
+
reverse(...args) { return __cjSafeValue; }
|
|
71
|
+
negative(...args) { return __cjSafeValue; }
|
|
72
|
+
reciprocal(...args) { return __cjSafeValue; }
|
|
73
|
+
add(...args) { return this; }
|
|
74
|
+
addInt(...args) { return __cjSafeValue; }
|
|
75
|
+
addFloat(...args) { return __cjSafeValue; }
|
|
76
|
+
sub(...args) { return __cjSafeValue; }
|
|
77
|
+
subInt(...args) { return __cjSafeValue; }
|
|
78
|
+
subFloat(...args) { return __cjSafeValue; }
|
|
79
|
+
mul(...args) { return __cjSafeValue; }
|
|
80
|
+
mulInt(...args) { return __cjSafeValue; }
|
|
81
|
+
mulFloat(...args) { return __cjSafeValue; }
|
|
82
|
+
div(...args) { return __cjSafeValue; }
|
|
83
|
+
divInt(...args) { return __cjSafeValue; }
|
|
84
|
+
divFloat(...args) { return __cjSafeValue; }
|
|
85
|
+
mod(...args) { return __cjSafeValue; }
|
|
86
|
+
modInt(...args) { return __cjSafeValue; }
|
|
87
|
+
modFloat(...args) { return __cjSafeValue; }
|
|
88
|
+
pow(...args) { return __cjSafeValue; }
|
|
89
|
+
sqrt(...args) { return __cjSafeValue; }
|
|
90
|
+
LT(...args) { return __cjSafeValue; }
|
|
91
|
+
['<'](...args) { return __cjSafeValue; }
|
|
92
|
+
LTInt(...args) { return __cjSafeValue; }
|
|
93
|
+
LTFloat(...args) { return __cjSafeValue; }
|
|
94
|
+
LE(...args) { return __cjSafeValue; }
|
|
95
|
+
['<='](...args) { return __cjSafeValue; }
|
|
96
|
+
LEInt(...args) { return __cjSafeValue; }
|
|
97
|
+
LEFloat(...args) { return __cjSafeValue; }
|
|
98
|
+
EQ(...args) { return __cjSafeValue; }
|
|
99
|
+
['=='](...args) { return __cjSafeValue; }
|
|
100
|
+
EQInt(...args) { return __cjSafeValue; }
|
|
101
|
+
EQFloat(...args) { return __cjSafeValue; }
|
|
102
|
+
NE(...args) { return __cjSafeValue; }
|
|
103
|
+
['!='](...args) { return __cjSafeValue; }
|
|
104
|
+
NEInt(...args) { return __cjSafeValue; }
|
|
105
|
+
NEFloat(...args) { return __cjSafeValue; }
|
|
106
|
+
GT(...args) { return __cjSafeValue; }
|
|
107
|
+
['>'](...args) { return __cjSafeValue; }
|
|
108
|
+
GTInt(...args) { return __cjSafeValue; }
|
|
109
|
+
GTFloat(...args) { return __cjSafeValue; }
|
|
110
|
+
GE(...args) { return __cjSafeValue; }
|
|
111
|
+
['>='](...args) { return __cjSafeValue; }
|
|
112
|
+
GEInt(...args) { return __cjSafeValue; }
|
|
113
|
+
GEFloat(...args) { return __cjSafeValue; }
|
|
114
|
+
}
|
|
115
|
+
Decimal.compareAbs = __cjSafeValue;
|
|
116
|
+
Decimal.compareSigned = __cjSafeValue;
|
|
Binary file
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
�
|
|
2
|
-
~
|
|
1
|
+
�U��DƪR��G�W-���q��y�4wx�3�/���
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "cj-encrypted-payload-v1",
|
|
3
3
|
"packageName": "@cjhd/cj-decimal",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
4
|
+
"version": "1.2.1",
|
|
5
|
+
"packageVersion": "1.2.1",
|
|
6
|
+
"algorithm": "aes-256-gcm",
|
|
7
|
+
"kdf": "hkdf-sha256",
|
|
8
|
+
"content": "obfuscated-esm-js",
|
|
9
|
+
"sourceHash": "38e74371797a404de25a8f60d9e9f3f36353b9363c0e0cb417cd0cd19299a062",
|
|
10
|
+
"payloadHash": "a2840f0290e1eed88e07adbc80c5815a7254c627ec925a082968bd111ae2a8bf",
|
|
9
11
|
"files": [
|
|
10
12
|
{
|
|
13
|
+
"path": "assets/Decimal.js",
|
|
11
14
|
"out": "assets/Decimal.js",
|
|
15
|
+
"encrypted": "files/assets__Decimal.js.bin",
|
|
12
16
|
"bin": "files/assets__Decimal.js.bin",
|
|
13
|
-
"iv": "
|
|
14
|
-
"authTag": "
|
|
15
|
-
"sha256": "
|
|
17
|
+
"iv": "bhGzsTRnNZ25z/Fw",
|
|
18
|
+
"authTag": "Wuoj4qOPO8wA3LubWM7t2A==",
|
|
19
|
+
"sha256": "43348f9739dd98920d33252883e4867d5a91499a25e334830454d81cd0fc0685",
|
|
20
|
+
"originalSize": 11903,
|
|
21
|
+
"encryptedSize": 11903
|
|
16
22
|
},
|
|
17
23
|
{
|
|
24
|
+
"path": "index.js",
|
|
18
25
|
"out": "index.js",
|
|
26
|
+
"encrypted": "files/index.js.bin",
|
|
19
27
|
"bin": "files/index.js.bin",
|
|
20
|
-
"iv": "
|
|
21
|
-
"authTag": "
|
|
22
|
-
"sha256": "
|
|
28
|
+
"iv": "ixUUA0V/l7jQIdv2",
|
|
29
|
+
"authTag": "v3Dy4zTzObE6/yZErkaQQg==",
|
|
30
|
+
"sha256": "c30136e8dfcd785ab5af9147fe7d3a761eb1fabcdf4ade0cb1bdb266214b60d2",
|
|
31
|
+
"originalSize": 42,
|
|
32
|
+
"encryptedSize": 42
|
|
23
33
|
}
|
|
24
34
|
],
|
|
25
35
|
"publicExports": [
|
|
26
36
|
"Decimal"
|
|
27
37
|
],
|
|
28
|
-
"createdAt": "2026-05-
|
|
38
|
+
"createdAt": "2026-05-22T08:23:00.482Z"
|
|
29
39
|
}
|
package/index.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
// CJHD editor-safe runtime stub. Generated by cj-cocos-license.
|
|
2
|
+
|
|
3
|
+
const __cjSafeValue = new Proxy(function __cjSafeValue() {}, {
|
|
4
|
+
get(target, key) {
|
|
5
|
+
if (key === Symbol.toPrimitive) return function () { return 0; };
|
|
6
|
+
if (key === 'valueOf') return function () { return 0; };
|
|
7
|
+
if (key === 'toString') return function () { return '[CJHD editor-safe stub]'; };
|
|
8
|
+
return __cjSafeValue;
|
|
9
|
+
},
|
|
10
|
+
apply() { return __cjSafeValue; },
|
|
11
|
+
construct() { return __cjSafeValue; },
|
|
12
|
+
});
|
|
4
13
|
|
|
5
14
|
export { Decimal } from './assets/Decimal.js';
|
|
6
|
-
export function __cj_package_not_unlocked__() { __cjLicenseError(); }
|