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

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 2.1.3 to 2.1.4

2

crel.js

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

},
isNode = isType(Node, fn) ? function (object) {
isNode = typeof Node === fn ? function (object) {
return object instanceof Node;

@@ -54,0 +54,0 @@ } :

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

!function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.crel=t()}(this,function(){function e(){var r,i=arguments,c=i[0],a=i[1],d=2,s=i.length,l=e.attrMap;if(c=e.isElement(c)?c:document.createElement(c),1===s)return c;if((!o(a,n)||e.isNode(a)||f(a))&&(--d,a=null),s-d===1&&o(i[d],"string")&&void 0!==c.textContent)c.textContent=i[d];else for(;s>d;++d)if(r=i[d],null!=r)if(f(r))for(var p=0;p<r.length;++p)u(c,r[p]);else u(c,r);for(var m in a)if(l[m]){var y=e.attrMap[m];typeof y===t?y(c,a[m]):c.setAttribute(y,a[m])}else c.setAttribute(m,a[m]);return c}var t="function",n="object",o=function(e,t){return typeof e===t},r=o(Node,t)?function(e){return e instanceof Node}:function(e){return e&&o(e,n)&&"nodeType"in e&&o(e.ownerDocument,n)},i=function(t){return e.isNode(t)&&1===t.nodeType},f=function(e){return e instanceof Array},u=function(e,t){i(t)||(t=document.createTextNode(t)),e.appendChild(t)};return e.attrMap={},e.isElement=i,e.isNode=r,e});
!function(e,t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):e.crel=t()}(this,function(){function e(){var r,i=arguments,c=i[0],a=i[1],d=2,s=i.length,l=e.attrMap;if(c=e.isElement(c)?c:document.createElement(c),1===s)return c;if((!o(a,n)||e.isNode(a)||f(a))&&(--d,a=null),s-d===1&&o(i[d],"string")&&void 0!==c.textContent)c.textContent=i[d];else for(;s>d;++d)if(r=i[d],null!=r)if(f(r))for(var p=0;p<r.length;++p)u(c,r[p]);else u(c,r);for(var m in a)if(l[m]){var y=e.attrMap[m];typeof y===t?y(c,a[m]):c.setAttribute(y,a[m])}else c.setAttribute(m,a[m]);return c}var t="function",n="object",o=function(e,t){return typeof e===t},r=typeof Node===t?function(e){return e instanceof Node}:function(e){return e&&o(e,n)&&"nodeType"in e&&o(e.ownerDocument,n)},i=function(t){return e.isNode(t)&&1===t.nodeType},f=function(e){return e instanceof Array},u=function(e,t){i(t)||(t=document.createTextNode(t)),e.appendChild(t)};return e.attrMap={},e.isElement=i,e.isNode=r,e});

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

],
"version": "2.1.3",
"version": "2.1.4",
"main": "crel.js",

@@ -11,0 +11,0 @@ "dependencies": {},

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