Comparing version 2.7.0 to 2.7.1-pr-324.0
@@ -67,4 +67,6 @@ import { type Simplify } from "type-fest"; | ||
* Returns all keys from objects in the union `T`. | ||
* | ||
* @public | ||
*/ | ||
type UnionKeys<T> = T extends T ? keyof T : never; | ||
export type UnionKeys<T> = T extends T ? keyof T : never; | ||
/** | ||
@@ -75,7 +77,11 @@ * Enforces strict union comformity by ensuring that all potential keys in a | ||
* Requires two generics to be used, so is abstracted by {@link StrictUnion}. | ||
* | ||
* @public | ||
*/ | ||
type StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never; | ||
export type StrictUnionHelper<T, TAll> = T extends any ? T & Partial<Record<Exclude<UnionKeys<TAll>, keyof T>, never>> : never; | ||
/** | ||
* Enforces strict union comformity by ensuring that all potential keys in a | ||
* union of objects are accounted for in every object. | ||
* | ||
* @public | ||
*/ | ||
@@ -82,0 +88,0 @@ export type StrictUnion<T> = StrictUnionHelper<T, T>; |
@@ -10,4 +10,6 @@ export { EventSchemas, type Combine, type LiteralZodEventSchema, type StandardEventSchemaToPayload, type StandardEventSchemas, type ZodEventSchemas, } from "./components/EventSchemas"; | ||
export { headerKeys, internalEvents, queryKeys } from "./helpers/consts"; | ||
export type { IsStringLiteral } from "./helpers/types"; | ||
export type { ClientOptions, EventNameFromTrigger, EventPayload, FailureEventArgs, FailureEventPayload, FunctionOptions, GetEvents, LogLevel, RegisterOptions, TimeStr, } from "./types"; | ||
export type { IsStringLiteral, StrictUnion, StrictUnionHelper, UnionKeys, } from "./helpers/types"; | ||
export { ProxyLogger } from "./middleware/logger"; | ||
export type { LogArg } from "./middleware/logger"; | ||
export type { ClientOptions, EventNameFromTrigger, EventPayload, FailureEventArgs, FailureEventPayload, FunctionOptions, GetEvents, LogLevel, RegisterOptions, TimeStr, TriggerOptions, } from "./types"; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.queryKeys = exports.internalEvents = exports.headerKeys = exports.NonRetriableError = exports.InngestMiddleware = exports.InngestCommHandler = exports.Inngest = exports.EventSchemas = void 0; | ||
exports.ProxyLogger = exports.queryKeys = exports.internalEvents = exports.headerKeys = exports.NonRetriableError = exports.InngestMiddleware = exports.InngestCommHandler = exports.Inngest = exports.EventSchemas = void 0; | ||
var EventSchemas_1 = require("./components/EventSchemas"); | ||
@@ -18,2 +18,4 @@ Object.defineProperty(exports, "EventSchemas", { enumerable: true, get: function () { return EventSchemas_1.EventSchemas; } }); | ||
Object.defineProperty(exports, "queryKeys", { enumerable: true, get: function () { return consts_1.queryKeys; } }); | ||
var logger_1 = require("./middleware/logger"); | ||
Object.defineProperty(exports, "ProxyLogger", { enumerable: true, get: function () { return logger_1.ProxyLogger; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -10,4 +10,6 @@ /** | ||
* See https://linear.app/inngest/issue/INN-1342/flush-logs-on-function-exitreturns for more details | ||
* | ||
* @public | ||
*/ | ||
type LogArg = unknown; | ||
export type LogArg = unknown; | ||
/** | ||
@@ -36,2 +38,4 @@ * Based on https://datatracker.ietf.org/doc/html/rfc5424#autoid-11 | ||
* And also attempt to allow enough time for the logger to flush all logs. | ||
* | ||
* @public | ||
*/ | ||
@@ -49,3 +53,2 @@ export declare class ProxyLogger implements Logger { | ||
} | ||
export {}; | ||
//# sourceMappingURL=logger.d.ts.map |
@@ -37,2 +37,4 @@ "use strict"; | ||
* And also attempt to allow enough time for the logger to flush all logs. | ||
* | ||
* @public | ||
*/ | ||
@@ -39,0 +41,0 @@ class ProxyLogger { |
{ | ||
"name": "inngest", | ||
"version": "2.7.0", | ||
"version": "2.7.1-pr-324.0", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -96,3 +96,8 @@ "main": "./index.js", | ||
"types": "./deno/fresh.d.ts" | ||
} | ||
}, | ||
"./api/*": "./api/*.js", | ||
"./components": "./components/*.js", | ||
"./deno/*": "./deno/*.js", | ||
"./helpers/*": "./helpers/*.js", | ||
"./middleware/*": "./middleware/*.js" | ||
}, | ||
@@ -99,0 +104,0 @@ "homepage": "https://github.com/inngest/inngest-js#readme", |
@@ -528,2 +528,4 @@ import { z } from "zod"; | ||
* A user-friendly method of specifying a trigger for an Inngest function. | ||
* | ||
* @public | ||
*/ | ||
@@ -530,0 +532,0 @@ export type TriggerOptions<T extends string> = T | StrictUnion<{ |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.7.0"; | ||
export declare const version = "2.7.1-pr-324.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "2.7.0"; | ||
exports.version = "2.7.1-pr-324.0"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
514856
7812
1