symbol-observable
Advanced tools
Comparing version 0.1.0 to 0.2.0
17
index.js
@@ -0,17 +1,4 @@ | ||
/* global window */ | ||
'use strict'; | ||
if (typeof Symbol === 'function') { | ||
if (!Symbol.observable) { | ||
Object.defineProperty(Symbol, 'observable', { | ||
value: Symbol('observable') | ||
}); | ||
} | ||
if (Symbol.observable) { | ||
module.exports = Symbol.observable; | ||
} else if (typeof Symbol.for === 'function') { | ||
module.exports = Symbol.for('observable'); | ||
} | ||
} else { | ||
module.exports = '@@observable'; | ||
} | ||
module.exports = require('./ponyfill')(global || window || this); |
{ | ||
"name": "symbol-observable", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Symbol.observable ponyfill", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "mocha" | ||
}, | ||
@@ -31,6 +31,6 @@ "files": [ | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*", | ||
"zen-observable": "^0.1.6" | ||
} | ||
"chai": "^3.5.0", | ||
"mocha": "^2.4.5" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -31,2 +31,2 @@ # symbol-observable [![Build Status](https://travis-ci.org/sindresorhus/symbol-observable.svg?branch=master)](https://travis-ci.org/sindresorhus/symbol-observable) | ||
MIT © [Sindre Sorhus](http://sindresorhus.com) | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
3047
2
5
3
2