alienese 0.4.2 → 0.4.3
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/alienese.js +9 -9
- package/package.json +2 -2
package/alienese.js
CHANGED
|
@@ -32,7 +32,7 @@ SOFTWARE.
|
|
|
32
32
|
// This patch aims to create smaller (quicker) and more concise (lighter) JavaScript code.
|
|
33
33
|
// It makes the code more implicit and serves as an alternative to obfuscation.
|
|
34
34
|
//
|
|
35
|
-
// v0.4.
|
|
35
|
+
// v0.4.3 / release 2025.11.25
|
|
36
36
|
//
|
|
37
37
|
// * Must be loaded modernism.js before this script.
|
|
38
38
|
//
|
|
@@ -41,9 +41,13 @@ SOFTWARE.
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
// Auto-load modernism in Node.js environment
|
|
45
|
+
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
|
|
46
|
+
try { require("modernism"); } catch (e) { }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let _g = _global ?? (typeof globalThis !== 'undefined') ? globalThis : (typeof window !== 'undefined' ? window : global);
|
|
50
|
+
let dfg = defineGlobal ?? ((name, value) => {
|
|
47
51
|
Object.defineProperty(_g, name, {
|
|
48
52
|
value: value,
|
|
49
53
|
writable: false,
|
|
@@ -52,11 +56,7 @@ const dfg = defineGlobal ?? ((name, value) => {
|
|
|
52
56
|
});
|
|
53
57
|
});
|
|
54
58
|
|
|
55
|
-
//
|
|
56
|
-
if (typeof require !== 'undefined' && typeof module !== 'undefined') {
|
|
57
|
-
try { require("modernism"); } catch (e) { }
|
|
58
|
-
}
|
|
59
|
-
|
|
59
|
+
// primitive types alias constant
|
|
60
60
|
dfg("U", UNDEFINED);
|
|
61
61
|
dfg("N", NULL);
|
|
62
62
|
dfg("T", TRUE);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alienese",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Alienise.js - Estre javscript Alienese patch",
|
|
5
5
|
"main": "alienese.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"modernism": "^0.4.
|
|
7
|
+
"modernism": "^0.4.3"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|