Socket
Socket
Sign inDemoInstall

qq

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qq - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

CHANGES

2

package.json
{
"name": "qq",
"description": "A heavy-weight library for promises, based on Q",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "http://github.com/kriskowal/qq/",

@@ -6,0 +6,0 @@ "author": "Kris Kowal <kris@cixar.com> (http://github.com/kriskowal/)",

@@ -315,2 +315,20 @@ (function (require, exports) {

exports.Lazy = function (constructor, promise) {
var prototype = constructor.prototype;
var result = exports.defer();
result.resolve(promise);
var proxy = Object.create(result.promise);
while (prototype !== Object.prototype) {
Object.getOwnPropertyNames(prototype).forEach(function (name) {
if (typeof prototype[name] === "function") {
proxy[name] = function () {
return Q.post(result.promise, name, arguments);
};
}
});
prototype = Object.getPrototypeOf(prototype);
}
return proxy;
};
// boilerplate that permits this module to be used as a

@@ -317,0 +335,0 @@ // <script> in less-than-ideal situations.

exports['test deep'] = require('./deep');
exports['test lazy'] = require('./lazy');

@@ -4,0 +5,0 @@ if (module == require.main)

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