Socket
Socket
Sign inDemoInstall

unsplash-js

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unsplash-js - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

examples/webpack/index.js

@@ -1,2 +0,2 @@

import Unsplash, { toJson } from "unsplash";
import Unsplash, { toJson } from "unsplash-js";

@@ -3,0 +3,0 @@ let unsplash = new Unsplash({

@@ -27,2 +27,3 @@ {

"imports-loader": "0.6.5",
"unsplash-js": "../..",
"webpack": "1.12.3",

@@ -29,0 +30,0 @@ "webpack-dev-server": "1.12.1",

@@ -29,8 +29,2 @@ var path = require('path');

],
resolve: {
alias: {
'unsplash': path.join(__dirname, '..', '..', 'src/unsplash.js')
},
extensions: ['', '.js']
},
module: {

@@ -42,8 +36,4 @@ loaders: [{

include: __dirname
}, {
test: /\.js$/,
loaders: ['babel-loader'],
include: path.join(__dirname, '..', '..', 'src')
}]
}
};
{
"name": "unsplash-js",
"version": "2.1.1",
"version": "2.1.2",
"description": "A Universal JavaScript wrapper for the Unsplash API",

@@ -5,0 +5,0 @@ "main": "lib/unsplash.js",

@@ -1,2 +0,2 @@

'use strict';
"use strict";

@@ -6,12 +6,17 @@ module.exports = {

loaders: [
{ test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ }
{ test: /\.js$/, loaders: ["babel-loader"], exclude: /node_modules/ }
]
},
output: {
library: 'Unsplash',
libraryTarget: 'umd'
library: "Unsplash",
libraryTarget: "umd"
},
resolve: {
extensions: ['', '.js']
}
externals: [{
"whatwg-fetch": {
root: "fetch",
commonjs2: "whatwg-fetch",
commonjs: "whatwg-fetch",
amd: "whatwg-fetch"
}
}]
};
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc