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

corridor

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corridor - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "corridor",
"version": "0.3.0",
"version": "0.3.1",
"description": "JSON/HTML data corridor for data-binding",

@@ -5,0 +5,0 @@ "repository": {

@@ -336,3 +336,3 @@ /**

if (field || elem.hasAttribute('data-opts')) {
if (field || hasOpts(elem)) {
opts = options(elem, defaults);

@@ -354,2 +354,19 @@ res = callback(elem, field, opts);

/**
* Check whether a given element has any options directly specified.
* @param {HTMLElement} elem The element to inspect.
* @return {boolean} True if this element has any options specified.
*/
hasOpts = corridor.hasOpts = function(elem) {
if (elem.hasAttribute('data-opts')) {
return true;
}
for (var k in defaults) {
if (elem.hasAttribute('data-' + k)) {
return true;
}
}
return false;
},
/**
* Convert a simple name attribute string into a full field string if it isn't already.

@@ -356,0 +373,0 @@ * The simple name format is a hybrid of Apple's Key-Value Coding and PHP's array-based form variables.

Sorry, the diff of this file is not supported yet

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