@e-mc/compat-v4 0.8.10 → 0.9.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/LICENSE +7 -3
- package/README.md +4 -4
- package/index.js +4 -14
- package/package.json +5 -5
package/LICENSE
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
Copyright 2024 An Pham
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
6
|
|
|
7
|
-
|
|
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
|
+
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,7 +1,7 @@
|
|
|
1
1
|
# @e-mc/compat-v4
|
|
2
2
|
|
|
3
|
-
* NodeJS
|
|
4
|
-
*
|
|
3
|
+
* NodeJS 16
|
|
4
|
+
* ES2020
|
|
5
5
|
|
|
6
6
|
## General Usage
|
|
7
7
|
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.9.1/lib/compat-v4.d.ts)
|
|
13
13
|
|
|
14
14
|
## LICENSE
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
BSD 3-Clause
|
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,23 +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
|
-
var _a;
|
|
196
|
-
return (_a = instance.using) === null || _a === void 0 ? void 0 : _a.call(instance, data, command);
|
|
197
|
-
};
|
|
198
|
-
setModule("@squared-functions/image-v3", Image);
|
|
199
|
-
}
|
|
200
|
-
catch {
|
|
201
|
-
}
|
|
202
191
|
try {
|
|
203
192
|
const Cloud = require("@e-mc/cloud");
|
|
204
193
|
Cloud.prototype.hasDatabaseCache = function (service, sessionKey) {
|
|
205
194
|
return this.hasCache(service, sessionKey);
|
|
206
195
|
};
|
|
207
196
|
Cloud.prototype.hasDatabaseCoerce = function (service, component, credential) {
|
|
208
|
-
return this.hasCoerce(service, component,
|
|
197
|
+
return this.hasCoerce(service, component, credential);
|
|
209
198
|
};
|
|
210
199
|
Cloud.prototype.getDatabaseResult = function (service, credential, queryString, options, renewCache) {
|
|
211
200
|
return this.getQueryResult(service, credential, queryString, options, renewCache);
|
|
@@ -283,6 +272,7 @@ catch {
|
|
|
283
272
|
["@squared-functions/document/chrome", "@pi-r/chrome"],
|
|
284
273
|
["@squared-functions/document/transform", "@e-mc/document/transform"],
|
|
285
274
|
["@squared-functions/file-manager/http/host", "@e-mc/request/http/host"],
|
|
275
|
+
["@squared-functions/image-v3", "@e-mc/image"],
|
|
286
276
|
["@squared-functions/image-v3/jimp", "@pi-r/jimp"],
|
|
287
277
|
["@squared-functions/task", "@e-mc/task"],
|
|
288
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.1",
|
|
4
4
|
"description": "Base class compatibility with squared-functions.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"name": "An Pham",
|
|
20
20
|
"email": "anpham6@gmail.com"
|
|
21
21
|
},
|
|
22
|
-
"license": "
|
|
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.1",
|
|
26
|
+
"@e-mc/request": "0.9.1",
|
|
27
|
+
"@e-mc/types": "0.9.1"
|
|
28
28
|
}
|
|
29
29
|
}
|