Comparing version 0.3.1 to 0.4.0
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="0.4.0"></a> | ||
# [0.4.0](https://github.com/moxystudio/js-class-is/compare/v0.3.1...v0.4.0) (2018-03-27) | ||
### Bug Fixes | ||
* remove npm build from prerelease ([56a4b73](https://github.com/moxystudio/js-class-is/commit/56a4b73)) | ||
### Features | ||
* remove babel ([e384228](https://github.com/moxystudio/js-class-is/commit/e384228)) | ||
<a name="0.3.1"></a> | ||
@@ -7,0 +22,0 @@ ## [0.3.1](https://github.com/moxystudio/js-class-is/compare/v0.3.0...v0.3.1) (2018-03-23) |
{ | ||
"name": "class-is", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Enhances a JavaScript class by adding an is<Class> property to compare types between realms.", | ||
@@ -22,15 +22,7 @@ "keywords": [ | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"files": [ | ||
"lib", | ||
"es" | ||
], | ||
"main": "index.js", | ||
"scripts": { | ||
"build:commonjs": "BABEL_ENV=commonjs babel src -d lib", | ||
"build:es": "BABEL_ENV=es babel src -d es", | ||
"build": "npm run build:commonjs && npm run build:es", | ||
"lint": "eslint .", | ||
"test": "jest --env node --coverage", | ||
"prerelease": "npm t && npm run lint && npm run build", | ||
"prerelease": "npm t && npm run lint", | ||
"release": "standard-version", | ||
@@ -59,4 +51,2 @@ "precommit": "lint-staged", | ||
"@commitlint/config-conventional": "^6.1.3", | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-moxy": "^2.3.2", | ||
"eslint": "^4.19.1", | ||
@@ -63,0 +53,0 @@ "eslint-config-moxy": "^5.2.1", |
@@ -33,2 +33,4 @@ # class-is | ||
If you want to use this module in the browser you have to compile it yourself to your desired target. | ||
## Usage | ||
@@ -38,3 +40,3 @@ | ||
// Package X | ||
import withIs from 'class-is'; | ||
const withIs = require('class-is'); | ||
@@ -48,6 +50,6 @@ class Person { | ||
export default withIs(Person, { className: 'Person', symbolName: '@org/package-x/person' }); | ||
module.exports = withIs(Person, { className: 'Person', symbolName: '@org/package-x/person' }); | ||
// Package Y | ||
import withIs from 'class-is'; | ||
const withIs = require('class-is'); | ||
@@ -60,7 +62,7 @@ class Animal { | ||
export default withIs(Animal, { className: 'Animal', symbolName: '@org/package-y/animal' }); | ||
module.exports = withIs(Animal, { className: 'Animal', symbolName: '@org/package-y/animal' }); | ||
// Package Z | ||
import Person from 'package-x'; | ||
import Animal from 'package-y'; | ||
const Person = require('package-x'); | ||
const Animal = require('package-y'); | ||
@@ -67,0 +69,0 @@ const diogo = new Person('Diogo', 'Porto'); |
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
8
10
112
9911
60