@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.
@@ -1,8 +1,8 @@
1
- @jitsu/functions-lib:build: cache hit, replaying output fdb4b01a77b8d12a
2
- @jitsu/functions-lib:build: 
3
- @jitsu/functions-lib:build: > @jitsu/functions-lib@0.0.0 build /Users/ildarnurislamov/Projects/newjitsu/libs/functions
4
- @jitsu/functions-lib:build: > rollup -c
5
- @jitsu/functions-lib:build: 
6
- @jitsu/functions-lib:build: 
7
- @jitsu/functions-lib:build: ./src/index.ts → dist/index.es.js, dist/index.cjs.js...
8
- @jitsu/functions-lib:build: created dist/index.es.js, dist/index.cjs.js in 907ms
1
+ @jitsu/functions-lib:build: cache hit, replaying output b1d2b889eca2f5a1
2
+ @jitsu/functions-lib:build: 
3
+ @jitsu/functions-lib:build: > @jitsu/functions-lib@0.0.0 build /Users/ildarnurislamov/Projects/newjitsu/libs/functions
4
+ @jitsu/functions-lib:build: > rollup -c
5
+ @jitsu/functions-lib:build: 
6
+ @jitsu/functions-lib:build: 
7
+ @jitsu/functions-lib:build: ./src/index.ts → dist/index.es.js, dist/index.cjs.js...
8
+ @jitsu/functions-lib:build: created dist/index.es.js, dist/index.cjs.js in 696ms
package/dist/index.cjs.js CHANGED
@@ -1,52 +1,13 @@
1
1
  'use strict';
2
2
 
3
- /******************************************************************************
4
- Copyright (c) Microsoft Corporation.
5
-
6
- Permission to use, copy, modify, and/or distribute this software for any
7
- purpose with or without fee is hereby granted.
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
- return RetryError;
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
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
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
- return RetryError;
47
- }(Error));
8
+ }
48
9
 
49
10
  export { DropRetryErrorName, RetryError, RetryErrorName };
@@ -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
- constructor(message?: any, options?: {
5
- drop: boolean;
6
- });
4
+ constructor(
5
+ message?: any,
6
+ options?: {
7
+ drop: boolean;
8
+ }
9
+ );
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/functions-lib",
3
- "version": "1.3.1-canary.301.20231020075206",
3
+ "version": "1.3.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
package/tsconfig.json CHANGED
@@ -5,7 +5,8 @@
5
5
  "outDir": "./dist",
6
6
  "declaration": true,
7
7
  "esModuleInterop": true,
8
- "noEmit": true
8
+ "noEmit": true,
9
+ "target": "esnext"
9
10
  },
10
11
  "exclude": [
11
12
  "__tests__",