jsfunx 1.2.2 → 1.2.4
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/LICENSE +1 -1
- package/jsfunx.cjs +12 -3
- package/jsfunx.mjs +12 -3
- package/package.json +1 -1
package/LICENSE
CHANGED
package/jsfunx.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Khiat Mohammed Abderrezzak
|
|
3
|
+
Copyright (c) 2025-2026 Khiat Mohammed Abderrezzak
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -178,22 +178,30 @@ const C = new Proxy(
|
|
|
178
178
|
Object.freeze({
|
|
179
179
|
Arr: Array,
|
|
180
180
|
Array: Array,
|
|
181
|
+
"function Array() { [native code] }": Array,
|
|
181
182
|
BI: BigInt,
|
|
182
183
|
BigInt: BigInt,
|
|
184
|
+
"function BigInt() { [native code] }": BigInt,
|
|
183
185
|
Bool: Boolean,
|
|
184
186
|
Boolean: Boolean,
|
|
187
|
+
"function Boolean() { [native code] }": Boolean,
|
|
185
188
|
Fn: Function,
|
|
186
189
|
Fun: Function,
|
|
187
190
|
Func: Function,
|
|
188
191
|
Function: Function,
|
|
192
|
+
"function Function() { [native code] }": Function,
|
|
189
193
|
Num: Number,
|
|
190
194
|
Number: Number,
|
|
195
|
+
"function Number() { [native code] }": Number,
|
|
191
196
|
Obj: Object,
|
|
192
197
|
Object: Object,
|
|
198
|
+
"function Object() { [native code] }": Object,
|
|
193
199
|
Str: String,
|
|
194
200
|
String: String,
|
|
201
|
+
"function String() { [native code] }": String,
|
|
195
202
|
Sym: Symbol,
|
|
196
203
|
Symbol: Symbol,
|
|
204
|
+
"function Symbol() { [native code] }": Symbol,
|
|
197
205
|
}),
|
|
198
206
|
|
|
199
207
|
{
|
|
@@ -1932,10 +1940,11 @@ function useStrict(func, args, optional_or_postArgs = 0, postArgs = false) {
|
|
|
1932
1940
|
if (
|
|
1933
1941
|
typeof optional_or_postArgs === "boolean" ||
|
|
1934
1942
|
optional_or_postArgs instanceof Boolean
|
|
1935
|
-
)
|
|
1943
|
+
) {
|
|
1936
1944
|
strict(func, args, 0, optional_or_postArgs);
|
|
1937
1945
|
|
|
1938
|
-
|
|
1946
|
+
return;
|
|
1947
|
+
}
|
|
1939
1948
|
}
|
|
1940
1949
|
|
|
1941
1950
|
strict(func, args, optional_or_postArgs, postArgs);
|
package/jsfunx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Khiat Mohammed Abderrezzak
|
|
3
|
+
Copyright (c) 2025-2026 Khiat Mohammed Abderrezzak
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -182,22 +182,30 @@ export const C = new Proxy(
|
|
|
182
182
|
Object.freeze({
|
|
183
183
|
Arr: Array,
|
|
184
184
|
Array: Array,
|
|
185
|
+
"function Array() { [native code] }": Array,
|
|
185
186
|
BI: BigInt,
|
|
186
187
|
BigInt: BigInt,
|
|
188
|
+
"function BigInt() { [native code] }": BigInt,
|
|
187
189
|
Bool: Boolean,
|
|
188
190
|
Boolean: Boolean,
|
|
191
|
+
"function Boolean() { [native code] }": Boolean,
|
|
189
192
|
Fn: Function,
|
|
190
193
|
Fun: Function,
|
|
191
194
|
Func: Function,
|
|
192
195
|
Function: Function,
|
|
196
|
+
"function Function() { [native code] }": Function,
|
|
193
197
|
Num: Number,
|
|
194
198
|
Number: Number,
|
|
199
|
+
"function Number() { [native code] }": Number,
|
|
195
200
|
Obj: Object,
|
|
196
201
|
Object: Object,
|
|
202
|
+
"function Object() { [native code] }": Object,
|
|
197
203
|
Str: String,
|
|
198
204
|
String: String,
|
|
205
|
+
"function String() { [native code] }": String,
|
|
199
206
|
Sym: Symbol,
|
|
200
207
|
Symbol: Symbol,
|
|
208
|
+
"function Symbol() { [native code] }": Symbol,
|
|
201
209
|
}),
|
|
202
210
|
|
|
203
211
|
{
|
|
@@ -1941,10 +1949,11 @@ export function useStrict(
|
|
|
1941
1949
|
if (
|
|
1942
1950
|
typeof optional_or_postArgs === "boolean" ||
|
|
1943
1951
|
optional_or_postArgs instanceof Boolean
|
|
1944
|
-
)
|
|
1952
|
+
) {
|
|
1945
1953
|
strict(func, args, 0, optional_or_postArgs);
|
|
1946
1954
|
|
|
1947
|
-
|
|
1955
|
+
return;
|
|
1956
|
+
}
|
|
1948
1957
|
}
|
|
1949
1958
|
|
|
1950
1959
|
strict(func, args, optional_or_postArgs, postArgs);
|