Socket
Socket
Sign inDemoInstall

array-reduce-prototypejs-fix

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.0.2"></a>
## [1.0.2](https://github.com/fczbkk/array-reduce-prototypejs-fix/compare/v1.0.1...v1.0.2) (2016-05-20)
### Bug Fixes
* stricter check for browser environment ([7725a1f](https://github.com/fczbkk/array-reduce-prototypejs-fix/commit/7725a1f))
<a name="1.0.1"></a>

@@ -2,0 +12,0 @@ ## [1.0.1](https://github.com/fczbkk/array-reduce-prototypejs-fix/compare/v1.0.0...v1.0.1) (2016-05-20)

2

lib/index.js

@@ -25,3 +25,3 @@ 'use strict';

// do not even try outside browser
if (!window) {
if (typeof window === 'undefined') {
return false;

@@ -28,0 +28,0 @@ }

{
"name": "array-reduce-prototypejs-fix",
"version": "1.0.1",
"version": "1.0.2",
"description": "Safe `Array.reduce()` when using PrototypeJS v1.6 and lower.",

@@ -5,0 +5,0 @@ "repository": {

@@ -12,3 +12,5 @@ import getNestedProperty from 'get-nested-property';

// do not even try outside browser
if (!window) {return false;}
if (typeof window === 'undefined') {
return false;
}

@@ -15,0 +17,0 @@ const prototype_version = getNestedProperty(window, 'Prototype.Version');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc