Sha256: ebe81985681e5ca61e630d8e6c3b4a5170c96d60bc1c67de9884e9753ce31ee1

Contents?: true

Size: 318 Bytes

Versions: 18

Compression:

Stored size: 318 Bytes

Contents

'use strict';

var util = require('util');
var getPolyfill = require('./polyfill');

module.exports = function shimUtilPromisify() {
	var polyfill = getPolyfill();
	if (polyfill !== util.promisify) {
		util.promisify = polyfill;
		Object.defineProperty(util, 'promisify', { value: polyfill });
	}
	return polyfill;
};

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.18.2 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.16.1 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.15.2 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.18.4 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.18.1 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.14.0 test/dummy/node_modules/util.promisify/shim.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/util.promisify/shim.js
jester-data-8.0.0 node_modules/util.promisify/shim.js
ezii-os-5.2.1 node_modules/util.promisify/shim.js
ezii-os-2.0.1 node_modules/util.promisify/shim.js
ezii-os-1.1.0 node_modules/util.promisify/shim.js
ezii-os-1.0.0 node_modules/util.promisify/shim.js
ezii-os-0.0.0.1.0 node_modules/util.promisify/shim.js
ezii-os-0.0.0.0.1 node_modules/util.promisify/shim.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/util.promisify/shim.js
locomotivecms-3.4.0 app/javascript/node_modules/util.promisify/shim.js