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

@xylabs/typeof

Package Overview
Dependencies
Maintainers
0
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/typeof - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

6

package.json

@@ -10,3 +10,3 @@ {

"email": "support@xylabs.com",
"url": "https://github.com/xylabs/sdk-js/issues"
"url": "git+https://github.com/xylabs/sdk-js/issues"
},

@@ -38,3 +38,3 @@ "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",

"type": "git",
"url": "https://github.com/xylabs/sdk-js.git"
"url": "git+https://github.com/xylabs/sdk-js.git"
},

@@ -49,4 +49,4 @@ "keywords": [

"sideEffects": false,
"version": "4.0.1",
"version": "4.0.2",
"type": "module"
}
import { typeOf } from './typeOf.ts'
import { TypeOfTypes } from './TypeOfTypes.ts'
import type { TypeOfTypes } from './TypeOfTypes.ts'

@@ -4,0 +4,0 @@ export const ifTypeOf = <T, R>(typeName: TypeOfTypes, value: unknown, trueFunc: (value: T) => R, isFunc?: (value: T) => boolean) => {

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

import { TypeOfTypes } from './TypeOfTypes.ts'
import type { TypeOfTypes } from './TypeOfTypes.ts'

@@ -3,0 +3,0 @@ export const typeOf = <T>(item: T): TypeOfTypes => {

import { typeOf } from './typeOf.ts'
import { TypeOfTypes } from './TypeOfTypes.ts'
import type { TypeOfTypes } from './TypeOfTypes.ts'

@@ -4,0 +4,0 @@ export const validateType = <T>(typeName: TypeOfTypes, value: T, optional = false): [T | undefined, Error[]] => {

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

import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
const config: XyTsupConfig = {

@@ -3,0 +3,0 @@ compile: {

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