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.2.0 to 3.0.0

2

crel.js

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

if(typeof Proxy !== 'undefined'){
return new Proxy(crel, {
crel.proxy = new Proxy(crel, {
get: function(target, key){

@@ -150,0 +150,0 @@ !(key in crel) && (crel[key] = crel.bind(null, key));

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

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

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

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

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

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

![crel](logo.png)
[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][downloads-url]

@@ -101,2 +103,4 @@ # What #

```javascript
var crel = require('crel').proxy;
var element = crel.div(

@@ -111,3 +115,3 @@ crel.h1('Crello World!'),

Crel works in everything (as far as I know), but ofcourse...
Crel works in everything (as far as I know), but of course...

@@ -150,1 +154,6 @@ ## IE SUPPORT

MIT
[npm-image]: https://img.shields.io/npm/v/crel.svg?style=flat-square
[npm-url]: https://npmjs.org/package/crel
[downloads-image]: http://img.shields.io/npm/dm/crel.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/crel

@@ -128,4 +128,6 @@ var crel = require('../'),

var testElement = crel.div({class: 'foo'},
crel.span('bar')
var proxyCrel = crel.proxy;
var testElement = proxyCrel.div({class: 'foo'},
proxyCrel.span('bar')
);

@@ -132,0 +134,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