@apify/utilities 2.15.4 → 2.15.6
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/esm/index.mjs +5 -5
- package/package.json +4 -4
package/esm/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
|
|
6
6
|
// src/utilities.ts
|
|
7
|
-
import crypto from "
|
|
7
|
+
import crypto from "crypto";
|
|
8
8
|
import { ANONYMOUS_USERNAME, APIFY_ID_REGEX } from "@apify/consts";
|
|
9
9
|
import log, { LoggerJson, LogLevel } from "@apify/log";
|
|
10
10
|
function cryptoRandomObjectId(length = 17) {
|
|
@@ -1450,7 +1450,7 @@ __publicField(_HealthChecker, "CHECK_TYPES", CHECK_TYPES);
|
|
|
1450
1450
|
var HealthChecker = _HealthChecker;
|
|
1451
1451
|
|
|
1452
1452
|
// src/parse_jsonl_stream.ts
|
|
1453
|
-
import { Transform } from "
|
|
1453
|
+
import { Transform } from "stream";
|
|
1454
1454
|
var _ParseJsonlStream = class _ParseJsonlStream extends Transform {
|
|
1455
1455
|
constructor() {
|
|
1456
1456
|
super(...arguments);
|
|
@@ -1723,7 +1723,7 @@ __name(_WebhookPayloadTemplate, "WebhookPayloadTemplate");
|
|
|
1723
1723
|
var WebhookPayloadTemplate = _WebhookPayloadTemplate;
|
|
1724
1724
|
|
|
1725
1725
|
// src/crypto.ts
|
|
1726
|
-
import crypto2 from "
|
|
1726
|
+
import crypto2 from "crypto";
|
|
1727
1727
|
var ENCRYPTION_ALGORITHM = "aes-256-gcm";
|
|
1728
1728
|
var ENCRYPTION_KEY_LENGTH = 32;
|
|
1729
1729
|
var ENCRYPTION_IV_LENGTH = 16;
|
|
@@ -1776,7 +1776,7 @@ function separateImports(code) {
|
|
|
1776
1776
|
__name(separateImports, "separateImports");
|
|
1777
1777
|
|
|
1778
1778
|
// src/code_hash_manager.ts
|
|
1779
|
-
import { createHmac, timingSafeEqual } from "
|
|
1779
|
+
import { createHmac, timingSafeEqual } from "crypto";
|
|
1780
1780
|
var CodeHashMetaKey = /* @__PURE__ */ ((CodeHashMetaKey2) => {
|
|
1781
1781
|
CodeHashMetaKey2["VERSION"] = "v";
|
|
1782
1782
|
CodeHashMetaKey2["USER"] = "u";
|
|
@@ -1835,7 +1835,7 @@ __publicField(_CodeHashManager, "VERSION", 1);
|
|
|
1835
1835
|
var CodeHashManager = _CodeHashManager;
|
|
1836
1836
|
|
|
1837
1837
|
// src/hmac.ts
|
|
1838
|
-
import crypto3 from "
|
|
1838
|
+
import crypto3 from "crypto";
|
|
1839
1839
|
var CHARSET = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
|
1840
1840
|
function encodeBase62(num) {
|
|
1841
1841
|
if (num === 0n) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apify/utilities",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.6",
|
|
4
4
|
"description": "Tools and constants shared across Apify projects.",
|
|
5
5
|
"main": "./cjs/index.cjs",
|
|
6
6
|
"module": "./esm/index.mjs",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@apify/consts": "^2.
|
|
52
|
-
"@apify/log": "^2.5.
|
|
51
|
+
"@apify/consts": "^2.42.0",
|
|
52
|
+
"@apify/log": "^2.5.19"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/create-hmac": "^1.1.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "d28745d8faada246aca6195d05da1e7194e9570a"
|
|
58
58
|
}
|