@wix/sdk-runtime
Advanced tools
Comparing version 0.3.8 to 0.3.9
import { EventDefinition } from '@wix/sdk-types'; | ||
export declare function createEventModule<Type extends string, Payload = unknown>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): import("@wix/sdk-types").BuildEventDefinition<EventDefinition<Payload, Type>> & EventDefinition<Payload, Type>; | ||
export declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): import("@wix/sdk-types").BuildEventDefinition<T> & T; |
@@ -1,6 +0,4 @@ | ||
import { EventDefinition } from '@wix/sdk-types'; | ||
import { contextualizeEventDefinitionModuleV2 } from './context.js'; | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export function createEventModule(type, isDomainEvent = false, transformations = ((x) => x)) { | ||
return contextualizeEventDefinitionModuleV2(EventDefinition(type, isDomainEvent, transformations)()); | ||
export function createEventModule(eventDefinition) { | ||
return contextualizeEventDefinitionModuleV2(eventDefinition); | ||
} |
@@ -1,2 +0,2 @@ | ||
import { ServicePluginContract, ServicePluginDefinition, ServicePluginMethodMetadata } from '@wix/sdk-types'; | ||
export declare function createServicePluginModule<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): import("@wix/sdk-types").BuildServicePluginDefinition<ServicePluginDefinition<Contract>> & ServicePluginDefinition<Contract>; | ||
import { ServicePluginDefinition } from '@wix/sdk-types'; | ||
export declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): import("@wix/sdk-types").BuildServicePluginDefinition<T> & T; |
@@ -1,5 +0,4 @@ | ||
import { ServicePluginDefinition, } from '@wix/sdk-types'; | ||
import { contextualizeSerivcePluginModuleV2 } from './context.js'; | ||
export function createServicePluginModule(componentType, methods) { | ||
return contextualizeSerivcePluginModuleV2(ServicePluginDefinition(componentType, methods)); | ||
export function createServicePluginModule(servicePluginDefinition) { | ||
return contextualizeSerivcePluginModuleV2(servicePluginDefinition); | ||
} |
import { EventDefinition } from '@wix/sdk-types'; | ||
export declare function createEventModule<Type extends string, Payload = unknown>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): import("@wix/sdk-types").BuildEventDefinition<EventDefinition<Payload, Type>> & EventDefinition<Payload, Type>; | ||
export declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): import("@wix/sdk-types").BuildEventDefinition<T> & T; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createEventModule = void 0; | ||
const sdk_types_1 = require("@wix/sdk-types"); | ||
const context_js_1 = require("./context.js"); | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
function createEventModule(type, isDomainEvent = false, transformations = ((x) => x)) { | ||
return (0, context_js_1.contextualizeEventDefinitionModuleV2)((0, sdk_types_1.EventDefinition)(type, isDomainEvent, transformations)()); | ||
function createEventModule(eventDefinition) { | ||
return (0, context_js_1.contextualizeEventDefinitionModuleV2)(eventDefinition); | ||
} | ||
exports.createEventModule = createEventModule; |
@@ -1,2 +0,2 @@ | ||
import { ServicePluginContract, ServicePluginDefinition, ServicePluginMethodMetadata } from '@wix/sdk-types'; | ||
export declare function createServicePluginModule<Contract extends ServicePluginContract>(componentType: string, methods: ServicePluginMethodMetadata[]): import("@wix/sdk-types").BuildServicePluginDefinition<ServicePluginDefinition<Contract>> & ServicePluginDefinition<Contract>; | ||
import { ServicePluginDefinition } from '@wix/sdk-types'; | ||
export declare function createServicePluginModule<T extends ServicePluginDefinition<any>>(servicePluginDefinition: T): import("@wix/sdk-types").BuildServicePluginDefinition<T> & T; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createServicePluginModule = void 0; | ||
const sdk_types_1 = require("@wix/sdk-types"); | ||
const context_js_1 = require("./context.js"); | ||
function createServicePluginModule(componentType, methods) { | ||
return (0, context_js_1.contextualizeSerivcePluginModuleV2)((0, sdk_types_1.ServicePluginDefinition)(componentType, methods)); | ||
function createServicePluginModule(servicePluginDefinition) { | ||
return (0, context_js_1.contextualizeSerivcePluginModuleV2)(servicePluginDefinition); | ||
} | ||
exports.createServicePluginModule = createServicePluginModule; |
{ | ||
"name": "@wix/sdk-runtime", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"license": "UNLICENSED", | ||
@@ -112,3 +112,3 @@ "sideEffects": false, | ||
}, | ||
"falconPackageHash": "799ebdd0d528bfc1c60229a651adf92dee027dee3eb3d12339ca5a60" | ||
"falconPackageHash": "792e970b910a4a5f62db234ff9f4d5550dcc78aa8e0b77d6d46a52c5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167695
4247