Comparing version 2.0.4 to 2.1.0
@@ -0,3 +1,5 @@ | ||
(function() { | ||
'use strict'; | ||
module.exports = require( "./lib/types" ); | ||
module.exports = require('./src/types'); | ||
})(); |
{ | ||
"name" : "ee-types" | ||
, "description" : "Reliable type detection" | ||
, "version" : "2.0.4" | ||
, "version" : "2.1.0" | ||
, "homepage" : "https://github.com/eventEmitter/ee-types" | ||
@@ -23,8 +23,15 @@ , "author" : "Michael van der Weg <michael@joinbox.com> (http://joinbox.com/)" | ||
"mocha" : "2.x" | ||
, "gulp" : "3.x" | ||
, "gulp-concat" : "2.x" | ||
, "gulp-sourcemaps" : "1.x" | ||
, "gulp-expect-file" : "0.0.x" | ||
, "gulp-uglify" : "1.x" | ||
} | ||
, "optionalDependencies": {} | ||
, "keywords" : ["type-detection", "es6"] | ||
, "keywords" : ["type-detection", "type", "es6"] | ||
, "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" | ||
} | ||
} |
@@ -11,2 +11,72 @@ # ee-types | ||
## Browser compatibility | ||
Desktop Browsers: | ||
- Chrome 7+ | ||
- Firefox 4+ | ||
- Safari 5.1+ | ||
- IE 9+ | ||
- Edge 25+ | ||
Mobile Browsers: | ||
- Safari iOS 6+ | ||
- Chrome for Android 38+ | ||
- Android Browser 4.4.4+ | ||
## Installation | ||
using npm | ||
npm i ee-types | ||
using bower | ||
bower i ee-types | ||
## Importing | ||
node | ||
let types = require('ee-types'); | ||
require.js | ||
you have to configure require.js to point the bower prefix | ||
to the bower_components folder. | ||
requirejs.config({ | ||
paths: { | ||
'bower': '/js/bower_components/' | ||
} | ||
}); | ||
and finally load the component | ||
require(['bower/ee-types/dist/ee-types.min'], function(types) { | ||
}); | ||
Browser & Vanilla | ||
<script src="bower/ee-types/dist/ee-types.min" /> | ||
var types = window.ee.types; | ||
## API | ||
@@ -13,0 +83,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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
58835
13
309
150
6
2
2
3