Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sinon-as-promised

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinon-as-promised - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

bower.json
{
"name": "sinon-as-promised",
"version": "2.0.1",
"version": "2.0.2",
"homepage": "https://github.com/bendrucker/sinon-as-promised",

@@ -5,0 +5,0 @@ "authors": [

{
"name": "sinon-as-promised",
"version": "2.0.1",
"version": "2.0.2",
"description": "Sugar methods for using sinon.js stubs with promises",

@@ -10,3 +10,3 @@ "main": "./src",

"release": "release release",
"build": "browserify -e ./src/index.js -t browserify-shim -o ./release/sinon-as-promised.js"
"build": "EXPOSIFY_CONFIG='{ \"sinon\": \"sinon\" }' browserify -s 'sinonAsPromised' -t exposify ./src/index.js > ./release/sinon-as-promised.js"
},

@@ -34,6 +34,6 @@ "repository": {

"browserify-bower-release": "^2.1.0",
"browserify-shim": "^3.8.1",
"chai": "1",
"chai-as-promised": "4",
"del": "^0.1.3",
"exposify": "^0.2.0",
"istanbul": "^0.3.2",

@@ -46,6 +46,3 @@ "mocha": "1",

"sinon": "1"
},
"browserify-shim": {
"sinon": "global:sinon"
}
}

@@ -14,3 +14,3 @@ sinon-as-promised [![Build Status](https://travis-ci.org/bendrucker/sinon-as-promised.svg?branch=master)](https://travis-ci.org/bendrucker/sinon-as-promised) [![NPM version](https://badge.fury.io/js/sinon-as-promised.svg)](http://badge.fury.io/js/sinon-as-promised)

Tagged versions (which Bower uses) include a `./release/sinon-as-promised.js` build that expect sinon to be available as `window.sinon`. The normal version in `./src` used by npm expects to be able to `require('sinon')`.
Tagged versions (which Bower uses) include a `./release/sinon-as-promised.js` build that expect sinon to be available as `window.sinon` and exposes its method for changing the promise constructor as `window.sinonAsPromised`. The normal version in `./src` used by npm expects to be able to `require('sinon')`.

@@ -17,0 +17,0 @@ ## Setup

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