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

function-overloader

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

function-overloader - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

src/checkCondition.spec.js

26

dist/index.js

@@ -131,5 +131,5 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _createType = __webpack_require__(7);
var _createTypeFactory = __webpack_require__(7);
var _createType2 = _interopRequireDefault(_createType);
var _createTypeFactory2 = _interopRequireDefault(_createTypeFactory);

@@ -292,13 +292,13 @@ var _number = __webpack_require__(8);

Overload.NUMBER = (0, _createType2.default)(_number2.default);
Overload.STRING = (0, _createType2.default)(_string2.default);
Overload.OBJECT = (0, _createType2.default)(_object2.default);
Overload.ARRAY = (0, _createType2.default)(_array2.default);
Overload.BOOLEAN = (0, _createType2.default)(_boolean2.default);
Overload.FUNCTION = (0, _createType2.default)(_function2.default);
Overload.SYMBOL = (0, _createType2.default)(_symbol2.default);
Overload.UNDEFINED = (0, _createType2.default)(_undefined2.default);
Overload.NULL = (0, _createType2.default)(_null2.default);
Overload.ANY = (0, _createType2.default)(_any2.default);
Overload.INSTANCE = (0, _createType2.default)(_instance2.default);
Overload.NUMBER = (0, _createTypeFactory2.default)(_number2.default);
Overload.STRING = (0, _createTypeFactory2.default)(_string2.default);
Overload.OBJECT = (0, _createTypeFactory2.default)(_object2.default);
Overload.ARRAY = (0, _createTypeFactory2.default)(_array2.default);
Overload.BOOLEAN = (0, _createTypeFactory2.default)(_boolean2.default);
Overload.FUNCTION = (0, _createTypeFactory2.default)(_function2.default);
Overload.SYMBOL = (0, _createTypeFactory2.default)(_symbol2.default);
Overload.UNDEFINED = (0, _createTypeFactory2.default)(_undefined2.default);
Overload.NULL = (0, _createTypeFactory2.default)(_null2.default);
Overload.ANY = (0, _createTypeFactory2.default)(_any2.default);
Overload.INSTANCE = (0, _createTypeFactory2.default)(_instance2.default);
exports.default = Overload;

@@ -305,0 +305,0 @@

{
"name": "function-overloader",
"version": "1.11.0",
"version": "1.11.1",
"description": "improve overloading functions and methods in js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

import debug from "debug";
import checkCondition from "./checkCondition";
import createType from "./createType";
import createTypeFactory from "./createTypeFactory";

@@ -18,13 +18,13 @@ import numberCondition from "./types/number";

export default class Overload {
static NUMBER = createType(numberCondition);
static STRING = createType(stringCondition);
static OBJECT = createType(objectCondition);
static ARRAY = createType(arrayCondition);
static BOOLEAN = createType(booleanCondition);
static FUNCTION = createType(functionCondition);
static SYMBOL = createType(symbolCondition);
static UNDEFINED = createType(undefinedCondition);
static NULL = createType(nullCondition);
static ANY = createType(anyCondition);
static INSTANCE = createType(instanceCondition);
static NUMBER = createTypeFactory(numberCondition);
static STRING = createTypeFactory(stringCondition);
static OBJECT = createTypeFactory(objectCondition);
static ARRAY = createTypeFactory(arrayCondition);
static BOOLEAN = createTypeFactory(booleanCondition);
static FUNCTION = createTypeFactory(functionCondition);
static SYMBOL = createTypeFactory(symbolCondition);
static UNDEFINED = createTypeFactory(undefinedCondition);
static NULL = createTypeFactory(nullCondition);
static ANY = createTypeFactory(anyCondition);
static INSTANCE = createTypeFactory(instanceCondition);

@@ -31,0 +31,0 @@ static set() {

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