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

should-type-adaptors

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

should-type-adaptors - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

cjs/should-type-adaptors.js

@@ -92,4 +92,3 @@ 'use strict';

// default for objects
defaultTypeAdaptorStorage.addType(new t.Type(t.OBJECT), {
var objectAdaptor = {
forEach: function(obj, f, context) {

@@ -116,4 +115,8 @@ for (var prop in obj) {

}
});
};
// default for objects
defaultTypeAdaptorStorage.addType(new t.Type(t.OBJECT), objectAdaptor);
defaultTypeAdaptorStorage.addType(new t.Type(t.FUNCTION), objectAdaptor);
var mapAdaptor = {

@@ -120,0 +123,0 @@ has: function(obj, key) {

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

import { merge, hasOwnProperty, propertyIsEnumerable, isIterator, isGeneratorFunction } from 'should-util';
import { hasOwnProperty, propertyIsEnumerable, merge, isIterator, isGeneratorFunction } from 'should-util';
import t from 'should-type';

@@ -86,4 +86,3 @@

// default for objects
defaultTypeAdaptorStorage.addType(new t.Type(t.OBJECT), {
var objectAdaptor = {
forEach: function(obj, f, context) {

@@ -110,4 +109,8 @@ for (var prop in obj) {

}
});
};
// default for objects
defaultTypeAdaptorStorage.addType(new t.Type(t.OBJECT), objectAdaptor);
defaultTypeAdaptorStorage.addType(new t.Type(t.FUNCTION), objectAdaptor);
var mapAdaptor = {

@@ -114,0 +117,0 @@ has: function(obj, key) {

{
"name": "should-type-adaptors",
"version": "1.0.0",
"version": "1.0.1",
"description": "Small utility functions to use the same traversing etc code on different types",

@@ -5,0 +5,0 @@ "main": "cjs/should-type-adaptors.js",

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