@trigger.dev/sdk 0.0.0-cross-runtime-20231201164903 → 0.0.0-cross-runtime-20231201165423
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { AsyncMap, KeyValueStoreResponseBody, RunTaskBodyInput, CompleteTaskBody
|
|
|
3
3
|
export { ConnectionAuth, DisplayProperty, EventFilter, Logger, NormalizedRequest, OverridableRunTaskOptions, Prettify, RedactString, RegisteredOptionsDiff, RunTaskOptions, SourceEventOption } from '@trigger.dev/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import { z, ZodType, TypeOf } from 'zod';
|
|
6
|
+
import { Buffer } from 'buffer';
|
|
6
7
|
import { BinaryToTextEncoding, BinaryLike, KeyObject } from 'crypto';
|
|
7
8
|
|
|
8
9
|
type QueryKeyValueStoreFunction = (action: "DELETE" | "GET" | "HAS" | "SET", data: {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AsyncMap, KeyValueStoreResponseBody, RunTaskBodyInput, CompleteTaskBody
|
|
|
3
3
|
export { ConnectionAuth, DisplayProperty, EventFilter, Logger, NormalizedRequest, OverridableRunTaskOptions, Prettify, RedactString, RegisteredOptionsDiff, RunTaskOptions, SourceEventOption } from '@trigger.dev/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import { z, ZodType, TypeOf } from 'zod';
|
|
6
|
+
import { Buffer } from 'buffer';
|
|
6
7
|
import { BinaryToTextEncoding, BinaryLike, KeyObject } from 'crypto';
|
|
7
8
|
|
|
8
9
|
type QueryKeyValueStoreFunction = (action: "DELETE" | "GET" | "HAS" | "SET", data: {
|
package/dist/index.js
CHANGED
|
@@ -627,6 +627,7 @@ __name(_KeyValueStore, "KeyValueStore");
|
|
|
627
627
|
var KeyValueStore = _KeyValueStore;
|
|
628
628
|
|
|
629
629
|
// src/io.ts
|
|
630
|
+
var import_node_buffer = require("node:buffer");
|
|
630
631
|
var _JSONOutputSerializer = class _JSONOutputSerializer {
|
|
631
632
|
serialize(value) {
|
|
632
633
|
return JSON.stringify(value);
|
|
@@ -1746,8 +1747,8 @@ async function generateIdempotencyKey(keyMaterial) {
|
|
|
1746
1747
|
return stableStringify(key2);
|
|
1747
1748
|
});
|
|
1748
1749
|
const key = keys.join(":");
|
|
1749
|
-
const hash = await import_node_crypto.webcrypto.subtle.digest("SHA-256", Buffer.from(key));
|
|
1750
|
-
return Buffer.from(hash).toString("hex");
|
|
1750
|
+
const hash = await import_node_crypto.webcrypto.subtle.digest("SHA-256", import_node_buffer.Buffer.from(key));
|
|
1751
|
+
return import_node_buffer.Buffer.from(hash).toString("hex");
|
|
1751
1752
|
}
|
|
1752
1753
|
__name(generateIdempotencyKey, "generateIdempotencyKey");
|
|
1753
1754
|
function stableStringify(obj) {
|
|
@@ -3005,7 +3006,7 @@ var DynamicSchedule = _DynamicSchedule;
|
|
|
3005
3006
|
var import_node_events = __toESM(require("node:events"));
|
|
3006
3007
|
|
|
3007
3008
|
// package.json
|
|
3008
|
-
var version = "0.0.0-cross-runtime-
|
|
3009
|
+
var version = "0.0.0-cross-runtime-20231201165423";
|
|
3009
3010
|
|
|
3010
3011
|
// src/concurrencyLimit.ts
|
|
3011
3012
|
var _ConcurrencyLimit = class _ConcurrencyLimit {
|