nexusframework 0.3.0-beta.72 → 0.3.0-beta.74

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.
Files changed (64) hide show
  1. package/LICENSE.md +55 -55
  2. package/README.md +12 -12
  3. package/about/index.json +5 -5
  4. package/about/index.nhp +4 -4
  5. package/icon.png +0 -0
  6. package/index.d.ts +12 -15
  7. package/index.js +94 -81
  8. package/index.js.map +1 -1
  9. package/index.ts +101 -89
  10. package/indexOfSkeleton.nhp +133 -133
  11. package/legacySkeleton.nhp +22 -22
  12. package/loader/overlay.css +1 -1
  13. package/loader/overlay.html +25 -25
  14. package/loader/overlay.scss +152 -152
  15. package/package.json +102 -89
  16. package/scripts/es5/compat.js +101 -0
  17. package/scripts/es5/compat.js.map +1 -0
  18. package/scripts/es5/compat.min.js +2 -0
  19. package/scripts/es5/compat.min.js.map +1 -0
  20. package/scripts/es5/loader.js +0 -0
  21. package/scripts/es5/loader.js.map +0 -0
  22. package/scripts/es5/loader.min.js +1 -1
  23. package/scripts/es5/loader.min.js.map +0 -0
  24. package/scripts/es5/nexusframeworkclient.js +1092 -1103
  25. package/scripts/es5/nexusframeworkclient.js.map +1 -1
  26. package/scripts/es5/nexusframeworkclient.min.js +1 -1
  27. package/scripts/es5/nexusframeworkclient.min.js.map +1 -1
  28. package/scripts/es6/compat.js +65 -0
  29. package/scripts/es6/compat.js.map +1 -0
  30. package/scripts/es6/compat.min.js +2 -0
  31. package/scripts/es6/compat.min.js.map +1 -0
  32. package/scripts/es6/loader.js +0 -0
  33. package/scripts/es6/loader.js.map +0 -0
  34. package/scripts/es6/loader.min.js +1 -1
  35. package/scripts/es6/loader.min.js.map +0 -0
  36. package/scripts/es6/nexusframeworkclient.js +1026 -1049
  37. package/scripts/es6/nexusframeworkclient.js.map +1 -1
  38. package/scripts/es6/nexusframeworkclient.min.js +1 -1
  39. package/scripts/es6/nexusframeworkclient.min.js.map +1 -1
  40. package/scripts/index.d.ts +259 -251
  41. package/scripts/src/compat.ts +62 -0
  42. package/scripts/src/loader.ts +385 -385
  43. package/scripts/src/nexusframeworkclient.ts +1163 -1185
  44. package/scripts/tsconfig.json +11 -11
  45. package/src/cli.d.ts +1 -0
  46. package/src/cli.js +102 -102
  47. package/src/cli.js.map +1 -1
  48. package/src/cli.ts +101 -101
  49. package/src/compileScripts.d.ts +2 -2
  50. package/src/compileScripts.js +145 -145
  51. package/src/compileScripts.js.map +1 -1
  52. package/src/compileScripts.ts +153 -153
  53. package/src/nexusframework.d.ts +177 -168
  54. package/src/nexusframework.js +3578 -3422
  55. package/src/nexusframework.js.map +1 -1
  56. package/src/nexusframework.ts +3631 -3473
  57. package/templates/basic/package.json +3 -3
  58. package/templates/basic/www/skeleton.nhp +1 -1
  59. package/templates/bootstrap/package.json +2 -2
  60. package/templates/bootstrap/www/skeleton.nhp +1 -1
  61. package/templates/bootstrap-material-design/package.json +2 -2
  62. package/templates/bootstrap-material-design/www/skeleton.nhp +1 -1
  63. package/tsconfig.json +25 -22
  64. package/types.d.ts +612 -564
@@ -1,152 +1,152 @@
1
- @mixin transition($transition...) {
2
- -moz-transition: $transition;
3
- -o-transition: $transition;
4
- -webkit-transition: $transition;
5
- transition: $transition;
6
- }
7
- @mixin animation($animation...) {
8
- -moz-animation: $animation;
9
- -o-animation: $animation;
10
- -webkit-animation: $animation;
11
- animation: $animation;
12
- }
13
-
14
- @keyframes loader-progress-bar-working {
15
- 0% {width:10%;left: 0%}
16
- 25% {width:20%}
17
- 50% {width:10%;left: 90%}
18
- 75% {width:20%}
19
- 100% {width:10%;left: 0%}
20
- }
21
-
22
- .loader-container {
23
- top: 0px;
24
- left: 0px;
25
- width: 100%;
26
- height: 100%;
27
- z-index: 99999999;
28
- position: absolute;
29
- background: #fafafa;
30
- pointer-events: none;
31
- @include transition(opacity .2s);
32
- position: fixed;
33
- opacity: 0;
34
-
35
- &, * {
36
- box-sizing: border-box;
37
- }
38
-
39
- &.loader-progress-container {
40
- &.loader-progress-visible {
41
- pointer-events: auto;
42
- opacity: 1;
43
- }
44
- }
45
- &.loader-error-container {
46
- &.loader-error-visible {
47
- pointer-events: auto;
48
- opacity: 1;
49
- }
50
- .loader-error-message-container {
51
- display: block;
52
- position: absolute;
53
- transform: translateX(-50%);
54
- background: #cc4444;
55
- border-radius: 1em;
56
- max-width: 80%;
57
- padding: 0.5em;
58
- margin: 0;
59
- left: 50%;
60
- top: 20%;
61
-
62
- .loader-error-message {
63
- font-family: 'Courier New', Courier, Console, System, monospace;
64
- background: rgba(0, 0, 0, 0.2);
65
- margin-bottom: 1em;
66
- border-radius: 1em;
67
- overflow: auto;
68
- padding: 1em;
69
- }
70
-
71
- .loader-error-reload {
72
- text-decoration: underline;
73
- color: white;
74
- }
75
- }
76
- background: #550000;
77
- color: white;
78
- }
79
- .loader-progress-heading,
80
- .loader-progress-message-container,
81
- .loader-progress-bar-container {
82
- left: 50%;
83
- transform: translateX(-50%);
84
- position: absolute;
85
- }
86
- .loader-progress-message-container {
87
- @include transition(opacity .2s);
88
- pointer-events: none;
89
- text-align: center;
90
- padding: 0 12px;
91
- font-size: 1em;
92
- bottom: 25%;
93
- width: 100%;
94
- opacity: 0;
95
- }
96
- .loader-progress-heading {
97
- top: 15%;
98
- font-size: 4em;
99
- min-width: 152px;
100
- line-height: 1.2;
101
- font-weight: 600;
102
- text-align: center;
103
- text-shadow: #999 0px 0px 5px;
104
- color: #555;
105
-
106
- h1 {
107
- font-weight: 700;
108
- }
109
- small {
110
- font-weight: 400;
111
- }
112
-
113
- &, * {
114
- font-family: Helvetica, Arial, sans-serif;
115
- }
116
-
117
- img {
118
- width: 152px;
119
- height: 152px;
120
- }
121
- }
122
-
123
- .loader-progress-bar-container {
124
- width: 80%;
125
- border: solid 0.8pt #999;
126
- height: 10px;
127
- bottom: 5%;
128
- }
129
-
130
- .loader-progress-bar {
131
- width: 0px;
132
- height: 100%;
133
- background: #999;
134
- @include transition(width .2s);
135
- &.loader-progress-bar-immediate {
136
- @include transition(none);
137
- }
138
- }
139
-
140
- &.loader-progress-message-visible {
141
- .loader-progress-message-container {
142
- pointer-events: auto;
143
- opacity: 1;
144
- }
145
- .loader-progress-bar {
146
- position: relative;
147
- width: 20% !important;
148
- @include animation(loader-progress-bar-working 2s ease infinite);
149
- @include transition(none);
150
- }
151
- }
152
- }
1
+ @mixin transition($transition...) {
2
+ -moz-transition: $transition;
3
+ -o-transition: $transition;
4
+ -webkit-transition: $transition;
5
+ transition: $transition;
6
+ }
7
+ @mixin animation($animation...) {
8
+ -moz-animation: $animation;
9
+ -o-animation: $animation;
10
+ -webkit-animation: $animation;
11
+ animation: $animation;
12
+ }
13
+
14
+ @keyframes loader-progress-bar-working {
15
+ 0% {width:10%;left: 0%}
16
+ 25% {width:20%}
17
+ 50% {width:10%;left: 90%}
18
+ 75% {width:20%}
19
+ 100% {width:10%;left: 0%}
20
+ }
21
+
22
+ .loader-container {
23
+ top: 0px;
24
+ left: 0px;
25
+ width: 100%;
26
+ height: 100%;
27
+ z-index: 99999999;
28
+ position: absolute;
29
+ background: #fafafa;
30
+ pointer-events: none;
31
+ @include transition(opacity .2s);
32
+ position: fixed;
33
+ opacity: 0;
34
+
35
+ &, * {
36
+ box-sizing: border-box;
37
+ }
38
+
39
+ &.loader-progress-container {
40
+ &.loader-progress-visible {
41
+ pointer-events: auto;
42
+ opacity: 1;
43
+ }
44
+ }
45
+ &.loader-error-container {
46
+ &.loader-error-visible {
47
+ pointer-events: auto;
48
+ opacity: 1;
49
+ }
50
+ .loader-error-message-container {
51
+ display: block;
52
+ position: absolute;
53
+ transform: translateX(-50%);
54
+ background: #cc4444;
55
+ border-radius: 1em;
56
+ max-width: 80%;
57
+ padding: 0.5em;
58
+ margin: 0;
59
+ left: 50%;
60
+ top: 20%;
61
+
62
+ .loader-error-message {
63
+ font-family: 'Courier New', Courier, Console, System, monospace;
64
+ background: rgba(0, 0, 0, 0.2);
65
+ margin-bottom: 1em;
66
+ border-radius: 1em;
67
+ overflow: auto;
68
+ padding: 1em;
69
+ }
70
+
71
+ .loader-error-reload {
72
+ text-decoration: underline;
73
+ color: white;
74
+ }
75
+ }
76
+ background: #550000;
77
+ color: white;
78
+ }
79
+ .loader-progress-heading,
80
+ .loader-progress-message-container,
81
+ .loader-progress-bar-container {
82
+ left: 50%;
83
+ transform: translateX(-50%);
84
+ position: absolute;
85
+ }
86
+ .loader-progress-message-container {
87
+ @include transition(opacity .2s);
88
+ pointer-events: none;
89
+ text-align: center;
90
+ padding: 0 12px;
91
+ font-size: 1em;
92
+ bottom: 25%;
93
+ width: 100%;
94
+ opacity: 0;
95
+ }
96
+ .loader-progress-heading {
97
+ top: 15%;
98
+ font-size: 4em;
99
+ min-width: 152px;
100
+ line-height: 1.2;
101
+ font-weight: 600;
102
+ text-align: center;
103
+ text-shadow: #999 0px 0px 5px;
104
+ color: #555;
105
+
106
+ h1 {
107
+ font-weight: 700;
108
+ }
109
+ small {
110
+ font-weight: 400;
111
+ }
112
+
113
+ &, * {
114
+ font-family: Helvetica, Arial, sans-serif;
115
+ }
116
+
117
+ img {
118
+ width: 152px;
119
+ height: 152px;
120
+ }
121
+ }
122
+
123
+ .loader-progress-bar-container {
124
+ width: 80%;
125
+ border: solid 0.8pt #999;
126
+ height: 10px;
127
+ bottom: 5%;
128
+ }
129
+
130
+ .loader-progress-bar {
131
+ width: 0px;
132
+ height: 100%;
133
+ background: #999;
134
+ @include transition(width .2s);
135
+ &.loader-progress-bar-immediate {
136
+ @include transition(none);
137
+ }
138
+ }
139
+
140
+ &.loader-progress-message-visible {
141
+ .loader-progress-message-container {
142
+ pointer-events: auto;
143
+ opacity: 1;
144
+ }
145
+ .loader-progress-bar {
146
+ position: relative;
147
+ width: 20% !important;
148
+ @include animation(loader-progress-bar-working 2s ease infinite);
149
+ @include transition(none);
150
+ }
151
+ }
152
+ }
package/package.json CHANGED
@@ -1,89 +1,102 @@
1
- {
2
- "name": "nexusframework",
3
- "author": "NexusTools <contact@nexustools.com>",
4
- "contributors": [
5
- "Katelyn Slater <ktaeyln@gmail.com>"
6
- ],
7
- "homepage": "https://nexustools.com/projects/nexusframework/nodejs",
8
- "version": "0.3.0-beta.72",
9
- "license": "Apache-2.0",
10
- "description": "ExpressJS and NexusFork compatible website framework.",
11
- "keywords": [
12
- "NexusTools",
13
- "NexusFramework",
14
- "dynamic",
15
- "website",
16
- "modular",
17
- "pages",
18
- "views",
19
- "express",
20
- "nexusfork",
21
- "javascript",
22
- "template",
23
- "html",
24
- "sass",
25
- "scss",
26
- "nhp"
27
- ],
28
- "bugs": {
29
- "url": "https://github.com/NexusFramework/NexusFrameworkJS/issues"
30
- },
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/NexusFramework/NexusFrameworkJS.git"
34
- },
35
- "scripts": {
36
- "compile-scripts": "node src/compileScripts",
37
- "compile-styles": "node-sass --output-style=\"compressed\" --output=\"loader\" loader",
38
- "test": "node node_modules/mocha/bin/mocha --bail --timeout 10000 --reporter spec --check-leaks --require source-map-support/register test/",
39
- "test-coverage": "istanbul cover node_modules/mocha/bin/_mocha -- --bail --reporter spec --check-leaks --require source-map-support/register test/ --exit",
40
- "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks --require source-map-support/register test/ --exit"
41
- },
42
- "main": "index",
43
- "engines": {
44
- "node": ">=8.0.0",
45
- "npm": ">=5.0.0"
46
- },
47
- "bin": {
48
- "nexusframework": "./src/cli.js"
49
- },
50
- "dependencies": {
51
- "argwrap": "^0.0.4",
52
- "async": "^2.6.0",
53
- "chokidar": "^2.0.3",
54
- "mime-magic": "^5.14.0",
55
- "cookie-parser": "^1.4.3",
56
- "express": "^4.16.3",
57
- "lodash": "^4.17.5",
58
- "lru-weak-cache": "^0.3.2",
59
- "multer": "^1.3.0",
60
- "nhp": "^0.9.0-beta.9",
61
- "sharp": "^0.20.1",
62
- "socket.io": "^2.1.0",
63
- "statuses": "^1.5.0",
64
- "useragent": "^2.3.0",
65
- "moment": "^2.22.0"
66
- },
67
- "devDependencies": {
68
- "@types/async": "^2.0.45",
69
- "@types/chokidar": "^1.7.3",
70
- "@types/express": "^4.0.39",
71
- "@types/jquery": "^3.2.16",
72
- "@types/lodash": "^4.14.85",
73
- "@types/lru-cache": "^4.1.0",
74
- "@types/mocha": "^2.2.44",
75
- "@types/request": "^2.0.8",
76
- "@types/sharp": "^0.17.5",
77
- "@types/socket.io": "^1.4.31",
78
- "@types/socket.io-client": "^1.4.32",
79
- "@types/useragent": "^2.1.1",
80
- "istanbul": "^0.4.5",
81
- "mocha": "^5.0.5",
82
- "nexusfork": "^0.5.3",
83
- "typescript": "^2.8.1",
84
- "request": "^2.85.0",
85
- "source-map-support": "^0.5.4",
86
- "uglify-es": "^3.3.10",
87
- "uglify-js": "^3.3.18"
88
- }
89
- }
1
+ {
2
+ "name": "nexusframework",
3
+ "author": "NexusTools <contact@nexustools.com>",
4
+ "contributors": [
5
+ "Katelyn Slater <ktaeyln@gmail.com>"
6
+ ],
7
+ "homepage": "https://nexustools.com/projects/nexusframework/nodejs",
8
+ "version": "0.3.0-beta.74",
9
+ "license": "Apache-2.0",
10
+ "description": "ExpressJS and NexusFork compatible website framework.",
11
+ "keywords": [
12
+ "NexusTools",
13
+ "NexusFramework",
14
+ "dynamic",
15
+ "website",
16
+ "modular",
17
+ "pages",
18
+ "views",
19
+ "express",
20
+ "nexusfork",
21
+ "javascript",
22
+ "template",
23
+ "html",
24
+ "sass",
25
+ "scss",
26
+ "nhp"
27
+ ],
28
+ "bugs": {
29
+ "url": "https://github.com/NexusFramework/NexusFrameworkJS/issues"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/NexusFramework/NexusFrameworkJS.git"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc",
37
+ "compile-scripts": "node src/compileScripts",
38
+ "compile-styles": "node-sass --output-style=\"compressed\" --output=\"loader\" loader",
39
+ "test": "jest --runInBand --forceExit",
40
+ "test-coverage": "jest --runInBand --forceExit --coverage",
41
+ "test-travis": "jest --runInBand --forceExit --coverage --coverageReporters=lcov"
42
+ },
43
+ "jest": {
44
+ "testMatch": [
45
+ "<rootDir>/test/tests.js"
46
+ ],
47
+ "transform": {
48
+ "^.+\\.js$": "@swc/jest"
49
+ },
50
+ "transformIgnorePatterns": []
51
+ },
52
+ "main": "index",
53
+ "engines": {
54
+ "node": ">=8.0.0",
55
+ "npm": ">=5.0.0"
56
+ },
57
+ "bin": {
58
+ "nexusframework": "./src/cli.js"
59
+ },
60
+ "dependencies": {
61
+ "argwrap": "^0.0.4",
62
+ "async": "^3.2.6",
63
+ "bson": "^7.3.3",
64
+ "chokidar": "^5.0.0",
65
+ "cookie-parser": "^1.4.7",
66
+ "express": "^5.2.1",
67
+ "lodash": "^4.18.1",
68
+ "lru-weak-cache": "^0.4.0",
69
+ "mime-magic": "^5.14.0",
70
+ "moment": "^2.31.0",
71
+ "multer": "^2.4.0",
72
+ "nhp": "^1.0.1",
73
+ "sharp": "^0.35.4",
74
+ "socket.io": "^4.8.3",
75
+ "socket.io-client": "^4.8.3",
76
+ "statuses": "^2.0.2",
77
+ "useragent": "^2.3.0"
78
+ },
79
+ "devDependencies": {
80
+ "@swc/core": "^1.16.2",
81
+ "@swc/jest": "^0.2.39",
82
+ "@types/async": "^3.2.26",
83
+ "@types/chokidar": "^2.1.7",
84
+ "@types/express": "^5.0.6",
85
+ "@types/jest": "latest",
86
+ "@types/jquery": "^4.0.1",
87
+ "@types/lodash": "^4.17.25",
88
+ "@types/lru-cache": "^7.10.10",
89
+ "@types/request": "^2.48.13",
90
+ "@types/sharp": "^0.32.0",
91
+ "@types/socket.io": "^3.0.2",
92
+ "@types/socket.io-client": "^3.0.0",
93
+ "@types/useragent": "^2.3.4",
94
+ "jest": "^30.5.2",
95
+ "nexusfork": "^0.5.4",
96
+ "request": "^2.88.2",
97
+ "source-map-support": "^0.5.21",
98
+ "typescript": "^7.0.2",
99
+ "uglify-es": "^3.3.10",
100
+ "uglify-js": "^3.19.3"
101
+ }
102
+ }
@@ -0,0 +1,101 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = Object.setPrototypeOf ||
3
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5
+ return function (d, b) {
6
+ extendStatics(d, b);
7
+ function __() { this.constructor = d; }
8
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9
+ };
10
+ })();
11
+ /// <reference path="../index.d.ts" />
12
+ (function (window) {
13
+ var Buffer;
14
+ var TextDecoder = window['TextDecoder'];
15
+ var TextEncoder = window['TextEncoder'];
16
+ var BufferBase = /** @class */ (function (_super) {
17
+ __extends(BufferBase, _super);
18
+ function BufferBase() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
20
+ }
21
+ BufferBase.isBuffer = function (object) {
22
+ return object instanceof Buffer;
23
+ };
24
+ BufferBase.prototype.slice = function (start, end) {
25
+ if (start === void 0) { start = 0; }
26
+ if (end === void 0) { end = this.length; }
27
+ return new Buffer(this.buffer.slice(start, end));
28
+ };
29
+ BufferBase.prototype.write = function (index, val) {
30
+ this[index] = val;
31
+ };
32
+ BufferBase.prototype.copy = function (from, offset, start, end) {
33
+ if (offset === void 0) { offset = 0; }
34
+ if (start === void 0) { start = 0; }
35
+ if (end === void 0) { end = from.length; }
36
+ var copylen = end - start + offset;
37
+ for (var i = offset; i < copylen; i++)
38
+ this[offset] = from[start + i];
39
+ };
40
+ return BufferBase;
41
+ }(Uint8Array));
42
+ if (TextDecoder && TextEncoder) {
43
+ var BufferImpl = /** @class */ (function (_super) {
44
+ __extends(BufferImpl, _super);
45
+ function BufferImpl() {
46
+ return _super !== null && _super.apply(this, arguments) || this;
47
+ }
48
+ BufferImpl.prototype.toString = function (encoding, start, end) {
49
+ if (start === void 0) { start = 0; }
50
+ if (end === void 0) { end = this.length; }
51
+ var decoder = new TextDecoder(encoding);
52
+ if (start > 0 || end < this.length)
53
+ return decoder.decode(this.slice(start, end));
54
+ return decoder.decode(this);
55
+ };
56
+ return BufferImpl;
57
+ }(BufferBase));
58
+ (Buffer = BufferImpl)['from'] = function (data, encoding) {
59
+ if (encoding === void 0) { encoding = "utf8"; }
60
+ var encoder = new TextEncoder(encoding);
61
+ var encoded = encoder.encode(data);
62
+ var buffer = new Buffer(encoded.length);
63
+ buffer.copy(encoded);
64
+ return buffer;
65
+ };
66
+ }
67
+ else {
68
+ var BufferImpl = /** @class */ (function (_super) {
69
+ __extends(BufferImpl, _super);
70
+ function BufferImpl() {
71
+ return _super !== null && _super.apply(this, arguments) || this;
72
+ }
73
+ BufferImpl.prototype.toString = function (encoding, start, end) {
74
+ if (start === void 0) { start = 0; }
75
+ if (end === void 0) { end = this.length; }
76
+ var str = "";
77
+ for (var i = start; i < end; i++)
78
+ str += String.fromCharCode(this[i]);
79
+ return str;
80
+ };
81
+ return BufferImpl;
82
+ }(BufferBase));
83
+ (Buffer = BufferImpl)['from'] = function (data, encoding) {
84
+ if (encoding === void 0) { encoding = "utf8"; }
85
+ if (encoding === "utf8") {
86
+ data = "" + data;
87
+ var len = data.length;
88
+ var buff = new Buffer(len);
89
+ for (var i = 0; i < len; i++)
90
+ buff[i] = data.charCodeAt(i) & 0xFF;
91
+ console.log(buff);
92
+ return buff;
93
+ }
94
+ else
95
+ return new Buffer(data);
96
+ };
97
+ }
98
+ window['Buffer'] = Buffer;
99
+ window['global'] = window;
100
+ })(window);
101
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../src/compat.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,sCAAsC;AACtC,CAAC,UAAS,MAAM;IACd,IAAI,MAAM,CAAC;IACX,IAAM,WAAW,GAA0C,MAAM,CAAC,aAAa,CAAC,CAAC;IACjF,IAAM,WAAW,GAA0C,MAAM,CAAC,aAAa,CAAC,CAAC;IACjF;QAAyB,8BAAU;QAAnC;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,EAAE,GAAG,IAAI,CAAC;gBACjB,IAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;gBACxB,IAAM,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;gBAC7B,KAAI,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAC,GAAG,EAAE,CAAC,EAAE;oBACrB,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBACtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAClB,OAAO,IAAI,CAAC;aACb;;gBACC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC,CAAC;KACH;IACD,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;IAC1B,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;AAC5B,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}();!function(t){var i,r=t.TextDecoder,u=t.TextEncoder,n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.isBuffer=function(t){return t instanceof i},n.prototype.slice=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=this.length),new i(this.buffer.slice(t,n))},n.prototype.write=function(t,n){this[t]=n},n.prototype.copy=function(t,n,o,e){void 0===n&&(n=0),void 0===o&&(o=0),void 0===e&&(e=t.length);for(var r=e-o+n,i=n;i<r;i++)this[n]=t[o+i]},n}(Uint8Array);if(r&&u){var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.toString=function(t,n,o){void 0===n&&(n=0),void 0===o&&(o=this.length);var e=new r(t);return 0<n||o<this.length?e.decode(this.slice(n,o)):e.decode(this)},n}(n);(i=o).from=function(t,n){void 0===n&&(n="utf8");var o=new u(n).encode(t),e=new i(o.length);return e.copy(o),e}}else{o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return __extends(n,t),n.prototype.toString=function(t,n,o){void 0===n&&(n=0),void 0===o&&(o=this.length);for(var e="",r=n;r<o;r++)e+=String.fromCharCode(this[r]);return e},n}(n);(i=o).from=function(t,n){if(void 0===n&&(n="utf8"),"utf8"===n){for(var o=(t=""+t).length,e=new i(o),r=0;r<o;r++)e[r]=255&t.charCodeAt(r);return console.log(e),e}return new i(t)}}t.Buffer=i,t.global=t}(window);
2
+ //# sourceMappingURL=compat.min.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/compat.ts"],"names":["window","Buffer","TextDecoder","TextEncoder","BufferBase","_super","__extends","isBuffer","object","prototype","slice","start","end","this","length","buffer","write","index","val","copy","from","offset","copylen","i","Uint8Array","BufferImpl","toString","encoding","decoder","decode","data","encoded","encode","str","String","fromCharCode","len","buff","charCodeAt","console","log"],"mappings":"gVACA,SAAUA,GACR,IAAIC,EACEC,EAAqDF,EAAoB,YACzEG,EAAqDH,EAAoB,YAC/EI,EAAA,SAAAC,GAAA,SAAAD,mDAeA,OAfyBE,UAAAF,EAAAC,GAChBD,EAAAG,SAAP,SAAgBC,GACd,OAAOA,aAAkBP,GAE3BG,EAAAK,UAAAC,MAAA,SAAMC,EAAWC,GACf,YADI,IAAAD,IAAAA,EAAA,QAAW,IAAAC,IAAAA,EAAMC,KAAKC,QACnB,IAAIb,EAAOY,KAAKE,OAAOL,MAAMC,EAAOC,KAE7CR,EAAAK,UAAAO,MAAA,SAAMC,EAAeC,GACnBL,KAAKI,GAASC,GAEhBd,EAAAK,UAAAU,KAAA,SAAKC,EAAkBC,EAAYV,EAAWC,QAAvB,IAAAS,IAAAA,EAAA,QAAY,IAAAV,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