New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nmtjs/contract

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nmtjs/contract - npm Package Compare versions

Comparing version 0.4.8 to 0.5.0

6

package.json

@@ -12,4 +12,4 @@ {

"dependencies": {
"@nmtjs/common": "0.4.8",
"@nmtjs/type": "0.4.8"
"@nmtjs/common": "0.5.0",
"@nmtjs/type": "0.5.0"
},

@@ -23,3 +23,3 @@ "files": [

],
"version": "0.4.8",
"version": "0.5.0",
"scripts": {

@@ -26,0 +26,0 @@ "build": "neemata-build -p neutral --root=./src './**/*.ts'",

@@ -1,2 +0,2 @@

import { type BaseType, type TSchema, getTypeSchema } from '@nmtjs/type'
import type { BaseType, BaseTypeAny } from '@nmtjs/type'
import { type ContractSchemaOptions, createSchema } from '../utils.ts'

@@ -7,3 +7,3 @@

export interface TEventContract<
Payload extends BaseType = BaseType,
Payload extends BaseTypeAny = BaseTypeAny,
Name extends string | undefined = string | undefined,

@@ -20,3 +20,3 @@ ServiceName extends string | undefined = string | undefined,

export const EventContract = <Payload extends BaseType>(
export const EventContract = <Payload extends BaseTypeAny>(
payload: Payload,

@@ -23,0 +23,0 @@ schemaOptions: ContractSchemaOptions = {} as ContractSchemaOptions,

@@ -1,2 +0,2 @@

import type { BaseType } from '@nmtjs/type'
import type { BaseTypeAny } from '@nmtjs/type'
import { type ContractSchemaOptions, createSchema } from '../utils.ts'

@@ -6,4 +6,4 @@

Type extends string = string,
Input extends BaseType = BaseType,
Output extends BaseType = BaseType,
Input extends BaseTypeAny = BaseTypeAny,
Output extends BaseTypeAny = BaseTypeAny,
Name extends string | undefined = string | undefined,

@@ -25,4 +25,4 @@ ServiceName extends string | undefined = string | undefined,

export interface TProcedureContract<
Input extends BaseType = BaseType,
Output extends BaseType = BaseType,
Input extends BaseTypeAny = BaseTypeAny,
Output extends BaseTypeAny = BaseTypeAny,
Name extends string | undefined = string | undefined,

@@ -43,4 +43,4 @@ ServiceName extends string | undefined = string | undefined,

export const ProcedureContract = <
Input extends BaseType,
Output extends BaseType,
Input extends BaseTypeAny,
Output extends BaseTypeAny,
>(

@@ -47,0 +47,0 @@ input: Input,

@@ -1,2 +0,2 @@

import type { BaseType } from '@nmtjs/type'
import type { BaseTypeAny } from '@nmtjs/type'
import { type ContractSchemaOptions, createSchema } from '../utils.ts'

@@ -9,4 +9,4 @@ import type { TEventContract } from './event.ts'

export interface TSubscriptionContract<
Input extends BaseType = BaseType,
Output extends BaseType = BaseType,
Input extends BaseTypeAny = BaseTypeAny,
Output extends BaseTypeAny = BaseTypeAny,
Options extends SubcriptionOptions = SubcriptionOptions,

@@ -35,4 +35,4 @@ Events extends Record<string, TEventContract> = Record<

export const SubscriptionContract = <
Input extends BaseType = BaseType,
Output extends BaseType = BaseType,
Input extends BaseTypeAny = BaseTypeAny,
Output extends BaseTypeAny = BaseTypeAny,
Events extends Record<string, TEventContract> = Record<

@@ -39,0 +39,0 @@ string,

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc