symbol-observable
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,11 @@ | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/blesh/symbol-observable/compare/1.0.2...v1.0.3) (2016-10-11) | ||
### Bug Fixes | ||
* **mozilla addons support:** fix obtaining global object (#23) ([38da34d](https://github.com/blesh/symbol-observable/commit/38da34d)), closes [#23](https://github.com/blesh/symbol-observable/issues/23) | ||
<a name="1.0.2"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.2](https://github.com/blesh/symbol-observable/compare/1.0.1...v1.0.2) (2016-08-09) |
/* global window */ | ||
import ponyfill from './ponyfill'; | ||
var root = this; | ||
if (typeof global !== 'undefined') { | ||
root = global; | ||
var root = module; | ||
if (typeof self !== 'undefined') { | ||
root = self; | ||
} else if (typeof window !== 'undefined') { | ||
root = window; | ||
root = window; | ||
} else if (typeof global !== 'undefined') { | ||
root = global; | ||
} else { | ||
root = Function('return this')(); | ||
} | ||
@@ -10,0 +15,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
@@ -13,8 +13,13 @@ | ||
var root = undefined; /* global window */ | ||
var root = module; /* global window */ | ||
if (typeof global !== 'undefined') { | ||
root = global; | ||
if (typeof self !== 'undefined') { | ||
root = self; | ||
} else if (typeof window !== 'undefined') { | ||
root = window; | ||
root = window; | ||
} else if (typeof global !== 'undefined') { | ||
root = global; | ||
} else { | ||
root = Function('return this')(); | ||
} | ||
@@ -21,0 +26,0 @@ |
{ | ||
"name": "symbol-observable", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Symbol.observable ponyfill", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# symbol-observable [![Build Status](https://travis-ci.org/blesh/symbol-observable.svg?branch=master)](https://travis-ci.org/blesh/symbol-observable) | ||
> [Symbol.observable](https://github.com/zenparsing/es-observable) ponyfill | ||
> [`Symbol.observable`](https://github.com/zenparsing/es-observable) [ponyfill](https://ponyfill.com) | ||
@@ -5,0 +5,0 @@ |
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents 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
8383
69
2