New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

can-reflect

Package Overview
Dependencies
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-reflect - npm Package Compare versions

Comparing version 1.0.0-pre.1 to 1.0.0-pre.2

2

package.json
{
"name": "can-reflect",
"version": "1.0.0-pre.1",
"version": "1.0.0-pre.2",
"description": "reflection on unknown data types",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

@@ -109,1 +109,7 @@ var QUnit = require('steal-qunit');

});
QUnit.test("isPromise", function() {
QUnit.ok(!typeReflections.isPromise({}), "Object is not a promise");
QUnit.ok(!typeReflections.isPromise({ catch: function(){}, then: function(){} }), "function with then and catch is not a Promise");
QUnit.ok(typeReflections.isPromise( new Promise(function(){})), "a new Promise() is a Promise");
});

@@ -159,3 +159,6 @@ var canSymbol = require("can-symbol");

obj.next.length === 0;
},
isPromise: function(obj){
return (obj instanceof Promise || (Object.prototype.toString.call(obj) === '[object Promise]'));
}
};
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