New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

array-of

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-of - npm Package Compare versions

Comparing version
1.0.1
to
1.1.0
+9
shim.js
var arrayOf = require('./');
if (!Array.of) {
Object.defineProperty(Array, 'of', {
value: arrayOf,
configurable: true,
writable: true
});
}
+2
-14
(function(root, arrayOf) {
if (typeof exports !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
if (typeof module !== 'undefined' && module.exports) {
exports = module.exports = arrayOf;
}
module.exports = arrayOf;
exports.arrayOf = arrayOf;
} else if (typeof define === 'function' && define.amd) {

@@ -19,10 +15,2 @@

if (!Array.of) {
Object.defineProperty(Array, 'of', {
value: arrayOf,
configurable: true,
writable: true
});
}
})(this, function () {

@@ -29,0 +17,0 @@

{
"name": "array-of",
"version": "1.0.1",
"version": "1.1.0",
"description": "Polyfill for Array.of",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,3 @@ # array-of [![Build Status](https://travis-ci.org/1000ch/array-of.svg?branch=master)](https://travis-ci.org/1000ch/array-of)

```javascript
require('array-of');
require('array-of/shim');

@@ -24,0 +24,0 @@ console.log(Array.of(4, 5, 6));