should-type-adaptors
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14916
455