@apify/utilities 2.29.0 → 2.29.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/cjs/index.cjs +6 -6
- package/esm/index.mjs +6 -6
- package/package.json +5 -5
package/cjs/index.cjs
CHANGED
|
@@ -1436,7 +1436,7 @@ function isBadForMongo(obj) {
|
|
|
1436
1436
|
__name(isBadForMongo, "isBadForMongo");
|
|
1437
1437
|
var _JsonVariable = class _JsonVariable {
|
|
1438
1438
|
constructor(name) {
|
|
1439
|
-
this
|
|
1439
|
+
__publicField(this, "name", name);
|
|
1440
1440
|
}
|
|
1441
1441
|
getToken() {
|
|
1442
1442
|
return `{{${this.name}}}`;
|
|
@@ -1543,7 +1543,7 @@ var CHECK_TYPES = /* @__PURE__ */ ((CHECK_TYPES2) => {
|
|
|
1543
1543
|
})(CHECK_TYPES || {});
|
|
1544
1544
|
var _HealthChecker = class _HealthChecker {
|
|
1545
1545
|
constructor(options) {
|
|
1546
|
-
this
|
|
1546
|
+
__publicField(this, "options", options);
|
|
1547
1547
|
__publicField(this, "checks");
|
|
1548
1548
|
__publicField(this, "redisPrefix");
|
|
1549
1549
|
__publicField(this, "redisTtlSecs");
|
|
@@ -1744,9 +1744,9 @@ __name(_InvalidVariableError, "InvalidVariableError");
|
|
|
1744
1744
|
var InvalidVariableError = _InvalidVariableError;
|
|
1745
1745
|
var _WebhookPayloadTemplate = class _WebhookPayloadTemplate {
|
|
1746
1746
|
constructor(template, allowedVariables = null, context = {}) {
|
|
1747
|
-
this
|
|
1748
|
-
this
|
|
1749
|
-
this
|
|
1747
|
+
__publicField(this, "template", template);
|
|
1748
|
+
__publicField(this, "allowedVariables", allowedVariables);
|
|
1749
|
+
__publicField(this, "context", context);
|
|
1750
1750
|
__publicField(this, "payload");
|
|
1751
1751
|
__publicField(this, "replacedVariables", []);
|
|
1752
1752
|
this.payload = template;
|
|
@@ -1973,7 +1973,7 @@ var CodeHashMetaKey = /* @__PURE__ */ ((CodeHashMetaKey2) => {
|
|
|
1973
1973
|
})(CodeHashMetaKey || {});
|
|
1974
1974
|
var _CodeHashManager = class _CodeHashManager {
|
|
1975
1975
|
constructor(secret) {
|
|
1976
|
-
this
|
|
1976
|
+
__publicField(this, "secret", secret);
|
|
1977
1977
|
}
|
|
1978
1978
|
/**
|
|
1979
1979
|
* Encodes object (e.g. input for actor) to a string hash and uses the `secret` to sign the hash.
|
package/esm/index.mjs
CHANGED
|
@@ -1349,7 +1349,7 @@ function isBadForMongo(obj) {
|
|
|
1349
1349
|
__name(isBadForMongo, "isBadForMongo");
|
|
1350
1350
|
var _JsonVariable = class _JsonVariable {
|
|
1351
1351
|
constructor(name) {
|
|
1352
|
-
this
|
|
1352
|
+
__publicField(this, "name", name);
|
|
1353
1353
|
}
|
|
1354
1354
|
getToken() {
|
|
1355
1355
|
return `{{${this.name}}}`;
|
|
@@ -1456,7 +1456,7 @@ var CHECK_TYPES = /* @__PURE__ */ ((CHECK_TYPES2) => {
|
|
|
1456
1456
|
})(CHECK_TYPES || {});
|
|
1457
1457
|
var _HealthChecker = class _HealthChecker {
|
|
1458
1458
|
constructor(options) {
|
|
1459
|
-
this
|
|
1459
|
+
__publicField(this, "options", options);
|
|
1460
1460
|
__publicField(this, "checks");
|
|
1461
1461
|
__publicField(this, "redisPrefix");
|
|
1462
1462
|
__publicField(this, "redisTtlSecs");
|
|
@@ -1657,9 +1657,9 @@ __name(_InvalidVariableError, "InvalidVariableError");
|
|
|
1657
1657
|
var InvalidVariableError = _InvalidVariableError;
|
|
1658
1658
|
var _WebhookPayloadTemplate = class _WebhookPayloadTemplate {
|
|
1659
1659
|
constructor(template, allowedVariables = null, context = {}) {
|
|
1660
|
-
this
|
|
1661
|
-
this
|
|
1662
|
-
this
|
|
1660
|
+
__publicField(this, "template", template);
|
|
1661
|
+
__publicField(this, "allowedVariables", allowedVariables);
|
|
1662
|
+
__publicField(this, "context", context);
|
|
1663
1663
|
__publicField(this, "payload");
|
|
1664
1664
|
__publicField(this, "replacedVariables", []);
|
|
1665
1665
|
this.payload = template;
|
|
@@ -1886,7 +1886,7 @@ var CodeHashMetaKey = /* @__PURE__ */ ((CodeHashMetaKey2) => {
|
|
|
1886
1886
|
})(CodeHashMetaKey || {});
|
|
1887
1887
|
var _CodeHashManager = class _CodeHashManager {
|
|
1888
1888
|
constructor(secret) {
|
|
1889
|
-
this
|
|
1889
|
+
__publicField(this, "secret", secret);
|
|
1890
1890
|
}
|
|
1891
1891
|
/**
|
|
1892
1892
|
* Encodes object (e.g. input for actor) to a string hash and uses the `secret` to sign the hash.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/utilities",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.1",
|
|
4
4
|
"description": "Tools and constants shared across Apify projects.",
|
|
5
5
|
"main": "./cjs/index.cjs",
|
|
6
6
|
"module": "./esm/index.mjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://apify.com",
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "
|
|
42
|
+
"build": "pnpm clean && pnpm compile && pnpm copy",
|
|
43
43
|
"clean": "rimraf ./dist",
|
|
44
44
|
"compile": "tsup",
|
|
45
45
|
"copy": "ts-node -T ../../scripts/copy.ts"
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@apify/consts": "^2.52.
|
|
52
|
-
"@apify/log": "^2.5.
|
|
51
|
+
"@apify/consts": "^2.52.2",
|
|
52
|
+
"@apify/log": "^2.5.36"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/create-hmac": "^1.1.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "a32462232ac6f04868e4685cf0aa94c5b04ef982"
|
|
58
58
|
}
|