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

dcl

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dcl - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

es6/advices/counter.js

4

bower.json

@@ -28,4 +28,6 @@ {

"test",
"tests"
"tests",
"dist",
"es6"
]
}

@@ -207,3 +207,3 @@ /* UMD.define */ (typeof define=="function"&&define||function(d,f,m){m={module:module,require:require};module.exports=f.apply(null,d.map(function(n){return m[n]||require(n)}))})

}
return; // undefined
// otherwise: undefined
}

@@ -210,0 +210,0 @@

@@ -207,3 +207,3 @@ (function(_,f){window.dcl=f();})

}
return; // undefined
// otherwise: undefined
}

@@ -210,0 +210,0 @@

{
"name": "dcl",
"version": "2.0.2",
"version": "2.0.3",
"description": "Elegant minimalistic implementation of OOP with mixins + AOP.",

@@ -16,7 +16,7 @@ "author": "Eugene Lazutkin <eugene.lazutkin@gmail.com> (http://lazutkin.com/)",

"heya-unit": ">=0.1",
"heya-globalize": "^1.0.3"
"heya-globalize": "^1.2.0"
},
"scripts": {
"test": "node tests/tests.js",
"dist": "node node_modules/heya-globalize/index.js"
"dist": "node node_modules/heya-globalize/index.js && node node_modules/heya-globalize/index.js --es6 --target=es6"
},

@@ -23,0 +23,0 @@ "github": "http://github.com/uhop/dcl",

@@ -211,2 +211,12 @@ # `dcl`

[Babel](https://babeljs.io/) can have problems while compiling UMD modules, because it appears to generate calls to `require()` dynamically. Specifically for that `dcl` comes with a special ES6 distribution located in `"/es6/"` directory:
```js
// ES6 FTW!
import dcl from 'dcl/es6/dcl';
import advise from 'dcl/es6/advise';
```
*Warning:* make sure that when you use Babel you include `dcl/es6` sources into the compilation set usually by adding `node_modules/dcl/es6` directory.
It can be used with AMD out of box:

@@ -246,2 +256,3 @@

- 2.0.3 &mdash; *Added ES6 distro*
- 2.0.2 &mdash; *Small stability fix + new utility: registry*

@@ -248,0 +259,0 @@ - 2.0.1 &mdash; *Small corrections to README*

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