@e-mc/compat-v4 0.8.7 → 0.9.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/LICENSE +10 -10
- package/README.md +18 -2
- package/index.js +4 -13
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
Copyright 2024 An Pham
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
|
|
7
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
-
|
|
9
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
-
|
|
1
|
+
Copyright 2024 An Pham
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
11
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @e-mc/compat-v4
|
|
2
2
|
|
|
3
|
-
* NodeJS 14
|
|
3
|
+
* NodeJS 14/16
|
|
4
4
|
* ES2020
|
|
5
5
|
|
|
6
6
|
## General Usage
|
|
@@ -9,7 +9,23 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.0/lib/compat-v4.d.ts)
|
|
13
|
+
|
|
14
|
+
## NodeJS 14 LTS
|
|
15
|
+
|
|
16
|
+
Any optional fail safe dependencies were removed as of `E-mc 0.9`. The code itself will still be *ES2020* and will continue to work equivalently when self-installing these dependencies:
|
|
17
|
+
|
|
18
|
+
### Under 15.4 + 16.0
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npm i abort-controller event-target-shim
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Under 14.17 + 15.6
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm i uuid
|
|
28
|
+
```
|
|
13
29
|
|
|
14
30
|
## LICENSE
|
|
15
31
|
|
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
const path = require("path");
|
|
4
3
|
const V4 = require("@e-mc/module/lib-v4");
|
|
5
4
|
const types_1 = require("@e-mc/types");
|
|
@@ -99,11 +98,11 @@ try {
|
|
|
99
98
|
set(value) {
|
|
100
99
|
const kIncremental = Object.getOwnPropertySymbols(this).find(sym => sym.toString() === 'Symbol(incremental)');
|
|
101
100
|
if (kIncremental) {
|
|
102
|
-
this[kIncremental] = value ?
|
|
101
|
+
this[kIncremental] = value ? "staging" : "none";
|
|
103
102
|
}
|
|
104
103
|
},
|
|
105
104
|
get() {
|
|
106
|
-
return this.incremental ===
|
|
105
|
+
return this.incremental === "staging";
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
108
|
cacheHttpRequest: {
|
|
@@ -189,22 +188,13 @@ try {
|
|
|
189
188
|
}
|
|
190
189
|
catch {
|
|
191
190
|
}
|
|
192
|
-
try {
|
|
193
|
-
const Image = require("@e-mc/image");
|
|
194
|
-
Image.using = async function (instance, data, command) {
|
|
195
|
-
return instance.using?.(data, command);
|
|
196
|
-
};
|
|
197
|
-
setModule("@squared-functions/image-v3", Image);
|
|
198
|
-
}
|
|
199
|
-
catch {
|
|
200
|
-
}
|
|
201
191
|
try {
|
|
202
192
|
const Cloud = require("@e-mc/cloud");
|
|
203
193
|
Cloud.prototype.hasDatabaseCache = function (service, sessionKey) {
|
|
204
194
|
return this.hasCache(service, sessionKey);
|
|
205
195
|
};
|
|
206
196
|
Cloud.prototype.hasDatabaseCoerce = function (service, component, credential) {
|
|
207
|
-
return this.hasCoerce(service, component,
|
|
197
|
+
return this.hasCoerce(service, component, credential);
|
|
208
198
|
};
|
|
209
199
|
Cloud.prototype.getDatabaseResult = function (service, credential, queryString, options, renewCache) {
|
|
210
200
|
return this.getQueryResult(service, credential, queryString, options, renewCache);
|
|
@@ -282,6 +272,7 @@ catch {
|
|
|
282
272
|
["@squared-functions/document/chrome", "@pi-r/chrome"],
|
|
283
273
|
["@squared-functions/document/transform", "@e-mc/document/transform"],
|
|
284
274
|
["@squared-functions/file-manager/http/host", "@e-mc/request/http/host"],
|
|
275
|
+
["@squared-functions/image-v3", "@e-mc/image"],
|
|
285
276
|
["@squared-functions/image-v3/jimp", "@pi-r/jimp"],
|
|
286
277
|
["@squared-functions/task", "@e-mc/task"],
|
|
287
278
|
["@squared-functions/task/gulp", "@pi-r/gulp"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/compat-v4",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Base class compatibility with squared-functions.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"license": "BSD 3-Clause",
|
|
23
23
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@e-mc/module": "0.
|
|
26
|
-
"@e-mc/request": "0.
|
|
27
|
-
"@e-mc/types": "0.
|
|
25
|
+
"@e-mc/module": "0.9.0",
|
|
26
|
+
"@e-mc/request": "0.9.0",
|
|
27
|
+
"@e-mc/types": "0.9.0"
|
|
28
28
|
}
|
|
29
29
|
}
|