Socket
Socket
Sign inDemoInstall

crel

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crel - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

crel.js

@@ -125,3 +125,7 @@ //Copyright (C) 2012 Kory Nunn

if(!attributeMap[key]){
element[setAttribute](key, settings[key]);
if(isType(settings[key],fn)){
element[key] = settings[key];
}else{
element[setAttribute](key, settings[key]);
}
}else{

@@ -128,0 +132,0 @@ var attr = attributeMap[key];

@@ -0,0 +0,0 @@ The MIT License (MIT)

9

package.json

@@ -8,3 +8,3 @@ {

],
"version": "3.0.0",
"version": "3.0.1",
"main": "crel.js",

@@ -29,3 +29,8 @@ "dependencies": {},

"license": "MIT",
"contributors": []
"contributors": [],
"homepage": "https://github.com/KoryNunn/crel#readme",
"directories": {
"test": "test"
},
"keywords": []
}

@@ -68,3 +68,3 @@ ![crel](logo.png)

```javascript
crel('div', {'class':'thing', 'data-attrubute':'majigger'});
crel('div', {'class':'thing', 'data-attribute':'majigger'});
```

@@ -71,0 +71,0 @@

@@ -123,2 +123,16 @@ var crel = require('../'),

test('onevent binding', function(t) {
t.plan(1);
var clickNode = crel('button', {
onclick: function(){
t.pass();
}
});
clickNode.click();
t.end();
});
if(typeof Proxy !== 'undefined'){

@@ -125,0 +139,0 @@

Sorry, the diff of this file is not supported yet

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