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
10
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.14.1 to 1.14.2

2

package.json
{
"name": "can-reflect",
"version": "1.14.1",
"version": "1.14.2",
"description": "reflection on unknown data types",

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

@@ -25,3 +25,3 @@ var QUnit = require('steal-qunit');

});
var instance = new MyType("_id");

@@ -28,0 +28,0 @@ schema = schemaReflections.getSchema(instance);

@@ -85,7 +85,21 @@ var canSymbol = require("can-symbol");

* ```
*
* A schema for a list looks like:
*
* ```js
* {
* type: "list",
* values: String
* keys: {
* count: Number
* }
* }
* ```
*
*/
getSchema: function(type){
var getSchema = type[getSchemaSymbol];
if(getSchema === undefined && type.constructor != null) {
getSchema = type.constructor[getSchemaSymbol];
if(getSchema === undefined ) {
type = type.constructor;
getSchema = type && type[getSchemaSymbol];
}

@@ -92,0 +106,0 @@ return getSchema.call(type);

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