Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@waiting/shared-types

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waiting/shared-types - npm Package Compare versions

Comparing version 23.0.1 to 23.2.1

src/lib/union2tuple.ts.old

8

dist/lib/common.d.ts

@@ -7,6 +7,6 @@ export type ToTuple<T> = T extends any[] ? T : any[];

*/
export type Spread<T1, T2, KeyExcludeOptinal = void> = {
[K in Exclude<keyof T1, KeyExcludeOptinal | keyof T2>]: T1[K];
export type Spread<T1, T2, KeyExcludeOptional = void> = {
[K in Exclude<keyof T1, KeyExcludeOptional | keyof T2>]: T1[K];
} & {
[K in Exclude<keyof T2, KeyExcludeOptinal>]: T2[K];
[K in Exclude<keyof T2, KeyExcludeOptional>]: T2[K];
};

@@ -71,3 +71,3 @@ /**

/**
* Retrive types
* Retrieve types
* @see https://stackoverflow.com/a/51955852/2887218

@@ -74,0 +74,0 @@ */

@@ -1,4 +0,3 @@

/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */
export {};
//# sourceMappingURL=common.js.map

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

/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */
export {};
//# sourceMappingURL=web.js.map
{
"name": "@waiting/shared-types",
"author": "waiting",
"version": "23.0.1",
"version": "23.2.1",
"description": "shared typescript types",

@@ -47,2 +47,3 @@ "keywords": [

"dist",
"src",
"!**/*.spec.*",

@@ -56,2 +57,3 @@ "!**/*.tsbuildinfo"

"build": "npm run tsc && tsc-alias && npm run rp",
"build:test": "tsc -p test/tsconfig.json",
"clean": "npm run clean:lock && npm run clean:dist && npm run clean:log",

@@ -63,10 +65,10 @@ "clean:cache": "rm -rf .eslintcache .tsbuildinfo",

"cov": "c8 --all npm run test -- --parallel=false",
"lint": "eslint --fix --cache {src,test}/**/*.ts",
"lint:nofix": "eslint --cache {src,test}/**/*.ts",
"pretest": "npm run build",
"lint": "eslint --fix --cache src test",
"lint:nofix": "eslint --cache src test",
"pretest": "npm run build && npm run build:test",
"rp": "tsx bin-hashbang.js",
"test": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/tsconfig.json mocha --jobs=4",
"tsc": "tsc -b"
"tsc": "tsc -p tsconfig.json"
},
"gitHead": "7a5ad96cba051ac3c851879e65b9f3e9f641730f"
"gitHead": "c24e67bdd445565f85ec5a65c66c1d93d45cebd7"
}

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

/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */

@@ -13,5 +12,5 @@

*/
export type Spread<T1, T2, KeyExcludeOptinal = void>
= { [K in Exclude<keyof T1, KeyExcludeOptinal | keyof T2>]: T1[K] }
& { [K in Exclude<keyof T2, KeyExcludeOptinal>]: T2[K] }
export type Spread<T1, T2, KeyExcludeOptional = void>
= { [K in Exclude<keyof T1, KeyExcludeOptional | keyof T2>]: T1[K] }
& { [K in Exclude<keyof T2, KeyExcludeOptional>]: T2[K] }

@@ -87,3 +86,3 @@ /**

/**
* Retrive types
* Retrieve types
* @see https://stackoverflow.com/a/51955852/2887218

@@ -90,0 +89,0 @@ */

@@ -9,3 +9,3 @@ /* eslint-disable @typescript-eslint/ban-types */

snake = 'snake',
none = 'none'
none = 'none',
}

@@ -12,0 +12,0 @@

@@ -10,3 +10,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

S extends `${infer T}${D}${infer U}` ? [T, ...StrSplit<U, D>] :
[S]
[S]

@@ -62,3 +62,3 @@ type V = string | number | boolean | bigint

T extends string,
D extends string = '_'
D extends string = '_',
> = string extends D

@@ -102,3 +102,3 @@ ? never

T extends string,
D extends string = '_'
D extends string = '_',
> = string extends D

@@ -114,3 +114,3 @@ ? never

D extends string = '_',
Recursive extends boolean = false
Recursive extends boolean = false,
> = T extends object

@@ -117,0 +117,0 @@ ? _CamelKeys<T, D, Recursive>

@@ -1,8 +0,5 @@

/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { XOR } from './common.js'
export type MiddlewareConfig <T = unknown> = {
export type MiddlewareConfig<T = unknown> = {
/**

@@ -9,0 +6,0 @@ * Enable middleware.

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

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