Comparing version 1.3.1 to 1.3.3
@@ -0,3 +1,5 @@ | ||
(function() { | ||
'use strict'; | ||
module.exports = require( "./lib/class" ); | ||
module.exports = require('./src/class'); | ||
})(); |
{ | ||
"name" : "ee-class" | ||
, "description" : "Fast prototype based javascript classes" | ||
, "version" : "1.3.1" | ||
, "version" : "1.3.3" | ||
, "homepage" : "https://github.com/eventEmitter/ee-class" | ||
@@ -22,8 +22,15 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "ee-log" : "0.x" | ||
, "gulp" : "3.x" | ||
, "gulp-concat" : "2.x" | ||
, "gulp-sourcemaps" : "1.x" | ||
, "gulp-expect-file" : "0.0.x" | ||
, "gulp-uglify" : "1.x" | ||
} | ||
, "optionalDependencies": {} | ||
, "keywords" : [ "class" ] | ||
, "keywords" : ["class"] | ||
, "scripts": { | ||
"test" : "./node_modules/mocha/bin/mocha --reporter spec" | ||
"test" : "./node_modules/mocha/bin/_mocha --reporter spec" | ||
, "posttest" : "npm run js" | ||
, "js" : "./node_modules/gulp/bin/gulp.js js js-min" | ||
} | ||
} |
@@ -10,2 +10,6 @@ # ee-class | ||
## Browser compatibility | ||
@@ -28,4 +32,8 @@ | ||
## Installation | ||
## Installation | ||
using npm | ||
@@ -39,2 +47,44 @@ | ||
## Importing | ||
node | ||
let Class = require('ee-class'); | ||
require.js | ||
you have to configure require.js to point the bower prefix | ||
to the bower_components folder. this is optional, but if you | ||
are using any other components of this author they will depend | ||
on this config for requiring other dependencies. | ||
requirejs.config({ | ||
paths: { | ||
'bower': '/js/bower_components/' | ||
} | ||
}); | ||
and finally load the component | ||
require(['bower/ee-class/dist/ee-class.min'], function(Class) { | ||
}); | ||
Browser & Vanilla | ||
<script src="bower/ee-class/dist/ee-class.min" /> | ||
var Class = window.ee.Class; | ||
## API | ||
@@ -41,0 +91,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
61564
451
7
11
377
1