@jitsu/functions-lib 1.3.1-canary.301.20231020075206 → 1.3.2
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/.turbo/turbo-build.log +8 -8
- package/dist/index.cjs.js +7 -46
- package/dist/index.es.js +7 -46
- package/dist/lib/functions.d.ts +6 -3
- package/package.json +1 -1
- package/tsconfig.json +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@jitsu/functions-lib:build: cache hit, replaying output [
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
1
|
+
@jitsu/functions-lib:build: cache hit, replaying output [2mb1d2b889eca2f5a1[0m
|
|
2
|
+
[33m@jitsu/functions-lib:build: [0m
|
|
3
|
+
[33m@jitsu/functions-lib:build: [0m> @jitsu/functions-lib@0.0.0 build /Users/ildarnurislamov/Projects/newjitsu/libs/functions
|
|
4
|
+
[33m@jitsu/functions-lib:build: [0m> rollup -c
|
|
5
|
+
[33m@jitsu/functions-lib:build: [0m
|
|
6
|
+
[33m@jitsu/functions-lib:build: [0m[36m
|
|
7
|
+
[33m@jitsu/functions-lib:build: [0m[1m./src/index.ts[22m → [1mdist/index.es.js, dist/index.cjs.js[22m...[39m
|
|
8
|
+
[33m@jitsu/functions-lib:build: [0m[32mcreated [1mdist/index.es.js, dist/index.cjs.js[22m in [1m696ms[22m[39m
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,52 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
18
|
-
|
|
19
|
-
var extendStatics = function(d, b) {
|
|
20
|
-
extendStatics = Object.setPrototypeOf ||
|
|
21
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
22
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
23
|
-
return extendStatics(d, b);
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
function __extends(d, b) {
|
|
27
|
-
if (typeof b !== "function" && b !== null)
|
|
28
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
29
|
-
extendStatics(d, b);
|
|
30
|
-
function __() { this.constructor = d; }
|
|
31
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
-
var e = new Error(message);
|
|
36
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var DropRetryErrorName = "Drop & RetryError";
|
|
40
|
-
var RetryErrorName = "RetryError";
|
|
41
|
-
var RetryError = /** @class */ (function (_super) {
|
|
42
|
-
__extends(RetryError, _super);
|
|
43
|
-
function RetryError(message, options) {
|
|
44
|
-
var _this = _super.call(this, message) || this;
|
|
45
|
-
_this.name = (options === null || options === void 0 ? void 0 : options.drop) ? "".concat(DropRetryErrorName) : "".concat(RetryErrorName);
|
|
46
|
-
return _this;
|
|
3
|
+
const DropRetryErrorName = "Drop & RetryError";
|
|
4
|
+
const RetryErrorName = "RetryError";
|
|
5
|
+
class RetryError extends Error {
|
|
6
|
+
constructor(message, options) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.name = options?.drop ? `${DropRetryErrorName}` : `${RetryErrorName}`;
|
|
47
9
|
}
|
|
48
|
-
|
|
49
|
-
}(Error));
|
|
10
|
+
}
|
|
50
11
|
|
|
51
12
|
exports.DropRetryErrorName = DropRetryErrorName;
|
|
52
13
|
exports.RetryError = RetryError;
|
package/dist/index.es.js
CHANGED
|
@@ -1,49 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
16
|
-
|
|
17
|
-
var extendStatics = function(d, b) {
|
|
18
|
-
extendStatics = Object.setPrototypeOf ||
|
|
19
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
20
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
21
|
-
return extendStatics(d, b);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function __extends(d, b) {
|
|
25
|
-
if (typeof b !== "function" && b !== null)
|
|
26
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
27
|
-
extendStatics(d, b);
|
|
28
|
-
function __() { this.constructor = d; }
|
|
29
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
33
|
-
var e = new Error(message);
|
|
34
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var DropRetryErrorName = "Drop & RetryError";
|
|
38
|
-
var RetryErrorName = "RetryError";
|
|
39
|
-
var RetryError = /** @class */ (function (_super) {
|
|
40
|
-
__extends(RetryError, _super);
|
|
41
|
-
function RetryError(message, options) {
|
|
42
|
-
var _this = _super.call(this, message) || this;
|
|
43
|
-
_this.name = (options === null || options === void 0 ? void 0 : options.drop) ? "".concat(DropRetryErrorName) : "".concat(RetryErrorName);
|
|
44
|
-
return _this;
|
|
1
|
+
const DropRetryErrorName = "Drop & RetryError";
|
|
2
|
+
const RetryErrorName = "RetryError";
|
|
3
|
+
class RetryError extends Error {
|
|
4
|
+
constructor(message, options) {
|
|
5
|
+
super(message);
|
|
6
|
+
this.name = options?.drop ? `${DropRetryErrorName}` : `${RetryErrorName}`;
|
|
45
7
|
}
|
|
46
|
-
|
|
47
|
-
}(Error));
|
|
8
|
+
}
|
|
48
9
|
|
|
49
10
|
export { DropRetryErrorName, RetryError, RetryErrorName };
|
package/dist/lib/functions.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare const DropRetryErrorName = "Drop & RetryError";
|
|
2
2
|
export declare const RetryErrorName = "RetryError";
|
|
3
3
|
export declare class RetryError extends Error {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
constructor(
|
|
5
|
+
message?: any,
|
|
6
|
+
options?: {
|
|
7
|
+
drop: boolean;
|
|
8
|
+
}
|
|
9
|
+
);
|
|
7
10
|
}
|
package/package.json
CHANGED