Socket
Socket
Sign inDemoInstall

q

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

5

CHANGES.md

@@ -1,3 +0,6 @@

<!-- vim:ts=4:sts=4:sw=4:et:tw=70 -->
## 1.4.0
- Add `noConflict` support for use in `<script>` (@jahnjw).
## 1.3.0

@@ -4,0 +7,0 @@

2

package.json
{
"name": "q",
"version": "1.3.0",
"version": "1.4.0",
"description": "A library for promises (CommonJS/Promises/A,B,D)",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/kriskowal/q",

@@ -59,4 +59,14 @@ // vim:ts=4:sts=4:sw=4:

} else if (typeof self !== "undefined") {
// Get the `window` object, save the previous Q global
// and initialize Q as a global.
var previousQ = self.Q;
self.Q = definition();
// Add a noConflict function so Q can be removed from the
// global namespace.
self.Q.noConflict = function () {
self.Q = previousQ;
return this;
};
} else {

@@ -2026,2 +2036,6 @@ throw new Error("This environment was not anticipated by Q. Please file a bug.");

Q.noConflict = function() {
throw new Error("Q.noConflict only works when Q is used as a global");
};
// All code before this point will be filtered from stack traces.

@@ -2028,0 +2042,0 @@ var qEndingLine = captureLine();

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