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

is-extended

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-extended - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

test/browserling.js

9

index.js

@@ -175,4 +175,11 @@ (function () {

function isArguments(object) {
var isArguments = function _isArguments(object) {
return !isUndefinedOrNull(object) && Object.prototype.toString.call(object) === '[object Arguments]';
};
if (!isArguments(arguments)) {
isArguments = function _isArguments(obj) {
return !!(obj && obj.hasOwnProperty("callee"));
};
}

@@ -179,0 +186,0 @@

4

is-extended.min.js

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

/*! is-extended - v0.0.1 - 2013-01-16
/*! is-extended - v0.0.3 - 2013-01-22
* Copyright (c) 2013 Doug Martin; Licensed MIT */
(function(){"use strict";function e(e){function r(e,t){return t=t||0,n.call(e,t)}function i(e,t){if(e===t)return!0;if(Buffer&&Buffer.isBuffer(e)&&Buffer.isBuffer(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e instanceof RegExp&&t instanceof RegExp?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:typeof e!="object"&&typeof t!="object"?e===t:s(e,t)}function s(e,t){var r;if(p(e)||p(t))return!1;if(e.prototype!==t.prototype)return!1;if(v(e))return v(t)?(e=n.call(e),t=n.call(t),i(e,t)):!1;try{var s=Object.keys(e),o=Object.keys(t),u;if(s.length!==o.length)return!1;s.sort(),o.sort();for(u=s.length-1;u>=0;u--)if(s[u]!==o[u])return!1;for(u=s.length-1;u>=0;u--){r=s[u];if(!i(e[r],t[r]))return!1}}catch(a){return!1}return!0}function o(e){return typeof e=="function"}function u(e){var t;return e!==null&&e!==t&&typeof e=="object"}function a(e){var t=u(e);return t&&e.constructor===Object}function f(e){if(u(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}else if(w(e)&&e==="")return!0;return!0}function l(e){return Object.prototype.toString.call(e)==="[object Boolean]"}function c(e){return e!==null&&e===t}function h(e){return!c(e)}function p(e){return c(e)||d(e)}function d(e){return e!==t&&e===null}function v(e){return!p(e)&&Object.prototype.toString.call(e)==="[object Arguments]"}function m(e,t){return o(t)?e instanceof t:!1}function g(e){return!p(e)&&e instanceof RegExp}function y(e){return Object.prototype.toString.call(e)==="[object Array]"}function b(e){return!p(e)&&typeof e=="object"&&e instanceof Date}function w(e){return!p(e)&&(typeof e=="string"||e instanceof String)}function E(e){return!p(e)&&(typeof e=="number"||e instanceof Number)}function S(e){return e===!0}function x(e){return e===!1}function T(e){return!d(e)}function N(e,t){return e==t}function C(e,t){return e!=t}function k(e,t){return e===t}function L(e,t){return e!==t}function A(e,t){if(y(t))for(var n=0,r=t.length;n<r;n++)if(N(e,t[n]))return!0;return!1}function O(e,t){return!A(e,t)}function M(e,t){return e<t}function _(e,t){return e<=t}function D(e,t){return e>t}function P(e,t){return e>=t}function H(e,t){return w(t)&&(t=new RegExp(t)),g(t)?t.test(""+e):!1}function B(e,t){return!H(e,t)}function j(e,t){return A(t,e)}function F(e,t){return!A(t,e)}function U(e){q[e]=function(){this._testers.push(I[e])}}function z(e){R[e]=function(n){var i=r(arguments,1),s=I[e],u,a=!0;if(i.length<=s.length-1)throw new TypeError("A handler must be defined when calling using switch");u=i.pop(),l(u)&&(a=u,u=i.pop());if(!o(u))throw new TypeError("handler must be defined");this._cases.push(function(e){var t;return s.apply(I,e.concat(i))?[a,u.apply(this,e)]:[!1]})}}var t,n=Array.prototype.slice,I={isFunction:o,isObject:u,isEmpty:f,isHash:a,isNumber:E,isString:w,isDate:b,isArray:y,isBoolean:l,isUndefined:c,isDefined:h,isUndefinedOrNull:p,isNull:d,isArguments:v,instanceOf:m,isRegExp:g,deepEqual:i,isTrue:S,isFalse:x,isNotNull:T,isEq:N,isNeq:C,isSeq:k,isSneq:L,isIn:A,isNotIn:O,isLt:M,isLte:_,isGt:D,isGte:P,isLike:H,isNotLike:B,contains:j,notContains:F},q={constructor:function(){this._testers=[]},noWrap:{tester:function(){var e=this._testers;return function(n){var r=!1;for(var i=0,s=e.length;i<s&&!r;i++)r=e[i](n);return r}}}},R={constructor:function(){this._cases=[],this.__default=null},def:function(e,t){this.__default=t},noWrap:{switcher:function(){var e=this._cases,t=this.__default;return function(){var i=!1,s=r(arguments),o;for(var u=0,a=e.length;u<a&&!i;u++){o=e[u](s);if(o.length>1)if(o[1]||o[0])return o[1]}if(!i&&t)return t.apply(this,s)}}}};for(var W in I)I.hasOwnProperty(W)&&(z(W),U(W));var X=e.define(I).expose(I);return X.tester=e.define(q),X.switcher=e.define(R),X}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extender"))):"function"==typeof define?define(["require"],function(t){return e(t("extender"))}):this.isa=e(this.extender)}).call(this);
(function(){"use strict";function e(e){function r(e,t){return t=t||0,n.call(e,t)}function i(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function s(e,t){if(e===t)return!0;if(typeof Buffer!="undefined"&&Buffer.isBuffer(e)&&Buffer.isBuffer(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e instanceof RegExp&&t instanceof RegExp?e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase:E(e)&&E(t)&&e!==t?!1:typeof e!="object"&&typeof t!="object"?e===t:o(e,t)}function o(e,t){var r;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(m(e))return m(t)?(e=n.call(e),t=n.call(t),s(e,t)):!1;try{var o=i(e),u=i(t),a;if(o.length!==u.length)return!1;o.sort(),u.sort();for(a=o.length-1;a>=0;a--)if(o[a]!==u[a])return!1;for(a=o.length-1;a>=0;a--){r=o[a];if(!s(e[r],t[r]))return!1}}catch(f){return!1}return!0}function u(e){return typeof e=="function"}function a(e){var t;return e!==null&&e!==t&&typeof e=="object"}function f(e){var t=a(e);return t&&e.constructor===Object}function l(e){if(a(e)){for(var t in e)if(e.hasOwnProperty(t))return!1}else if(E(e)&&e==="")return!0;return!0}function c(e){return Object.prototype.toString.call(e)==="[object Boolean]"}function h(e){return e!==null&&e===t}function p(e){return!h(e)}function d(e){return h(e)||v(e)}function v(e){return e!==t&&e===null}function g(e,t){return u(t)?e instanceof t:!1}function y(e){return!d(e)&&e instanceof RegExp}function b(e){return Object.prototype.toString.call(e)==="[object Array]"}function w(e){return!d(e)&&typeof e=="object"&&e instanceof Date}function E(e){return!d(e)&&(typeof e=="string"||e instanceof String)}function S(e){return!d(e)&&(typeof e=="number"||e instanceof Number)}function x(e){return e===!0}function T(e){return e===!1}function N(e){return!v(e)}function C(e,t){return e==t}function k(e,t){return e!=t}function L(e,t){return e===t}function A(e,t){return e!==t}function O(e,t){if(b(t))for(var n=0,r=t.length;n<r;n++)if(C(e,t[n]))return!0;return!1}function M(e,t){return!O(e,t)}function _(e,t){return e<t}function D(e,t){return e<=t}function P(e,t){return e>t}function H(e,t){return e>=t}function B(e,t){return E(t)&&(t=new RegExp(t)),y(t)?t.test(""+e):!1}function j(e,t){return!B(e,t)}function F(e,t){return O(t,e)}function I(e,t){return!O(t,e)}function z(e){R[e]=function(){this._testers.push(q[e])}}function W(e){U[e]=function(){var n=r(arguments,1),i=q[e],s,o=!0;if(n.length<=i.length-1)throw new TypeError("A handler must be defined when calling using switch");s=n.pop(),c(s)&&(o=s,s=n.pop());if(!u(s))throw new TypeError("handler must be defined");this._cases.push(function(e){return i.apply(q,e.concat(n))?[o,s.apply(this,e)]:[!1]})}}var t,n=Array.prototype.slice,m=function(t){return!d(t)&&Object.prototype.toString.call(t)==="[object Arguments]"};m(arguments)||(m=function(t){return!!t&&!!t.hasOwnProperty("callee")});var q={isFunction:u,isObject:a,isEmpty:l,isHash:f,isNumber:S,isString:E,isDate:w,isArray:b,isBoolean:c,isUndefined:h,isDefined:p,isUndefinedOrNull:d,isNull:v,isArguments:m,instanceOf:g,isRegExp:y,deepEqual:s,isTrue:x,isFalse:T,isNotNull:N,isEq:C,isNeq:k,isSeq:L,isSneq:A,isIn:O,isNotIn:M,isLt:_,isLte:D,isGt:P,isGte:H,isLike:B,isNotLike:j,contains:F,notContains:I},R={constructor:function(){this._testers=[]},noWrap:{tester:function(){var e=this._testers;return function(n){var r=!1;for(var i=0,s=e.length;i<s&&!r;i++)r=e[i](n);return r}}}},U={constructor:function(){this._cases=[],this.__default=null},def:function(e,t){this.__default=t},noWrap:{switcher:function(){var e=this._cases,t=this.__default;return function(){var i=!1,s=r(arguments),o;for(var u=0,a=e.length;u<a&&!i;u++){o=e[u](s);if(o.length>1)if(o[1]||o[0])return o[1]}if(!i&&t)return t.apply(this,s)}}}};for(var X in q)q.hasOwnProperty(X)&&(W(X),z(X));var V=e.define(q).expose(q);return V.tester=e.define(R),V.switcher=e.define(U),V}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"))):"function"==typeof define?define(["require"],function(t){return e(t("extended"))}):this.is=e(this.extended)}).call(this);
{
"name": "is-extended",
"version": "0.0.2",
"version": "0.0.3",
"description": "Module for type detection",

@@ -20,11 +20,21 @@ "main": "index.js",

],
"testling": {
"files": "test/browserling.js",
"browsers": {
"ie": [6, 7, 8, 9],
"chrome": [4, 23, "canary"],
"firefox": [3, 3.5, 3.6, 4, 17, "nightly"],
"opera": [10, 10.5, 11, 11.5, 11.6, 12, "next"],
"safari": ["5.0.1", 5.1]
}
},
"author": "Doug Martin",
"license": "MIT",
"dependencies": {
"extended": "0.0.2"
"extended": "~0.0.3"
},
"devDependencies": {
"it": "~0.1.0",
"it": "~0.2.0",
"grunt-it": "~0.2.0"
}
}
[![Build Status](https://travis-ci.org/doug-martin/is-extended.png?branch=master)](undefined)
[![browser support](http://ci.testling.com/doug-martin/is-extended.png)](http://ci.testling.com/doug-martin/is-extended)
# is-extended

@@ -4,0 +6,0 @@

@@ -241,3 +241,5 @@ "use strict";

]));
assert.isTrue(is.deepEqual(new Buffer("abc"), new Buffer("abc")));
if (process.title !== "browser") {
assert.isTrue(is.deepEqual(new Buffer("abc"), new Buffer("abc")));
}
(function _deepEqual() {

@@ -244,0 +246,0 @@ var argsA = arguments;

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