Comparing version 2.0.2 to 2.0.3
@@ -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 — *Added ES6 distro* | ||
- 2.0.2 — *Small stability fix + new utility: registry* | ||
@@ -248,0 +259,0 @@ - 2.0.1 — *Small corrections to README* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200461
71
6053
276