eyes.utils
Advanced tools
Comparing version 0.0.23 to 0.0.24
11
index.js
exports.ArgumentGuard = require('./src/ArgumentGuard'); | ||
exports.BrowserUtils = require('./src/BrowserUtils'); | ||
exports.CoordinatesType = require('./src/CoordinatesType'); | ||
exports.CutProvider = require('./src/CutProvider'); | ||
exports.GeneralUtils = require('./src/GeneralUtils'); | ||
@@ -9,14 +6,6 @@ exports.GeometryUtils = require('./src/GeometryUtils'); | ||
exports.ImageUtils = require('./src/ImageUtils'); | ||
exports.MutableImage = require('./src/MutableImage'); | ||
exports.PositionProvider = require('./src/PositionProvider'); | ||
exports.PromiseFactory = require('./src/PromiseFactory'); | ||
exports.PropertyHandler = require('./src/PropertyHandler'); | ||
exports.ReadOnlyPropertyHandler = require('./src/ReadOnlyPropertyHandler'); | ||
exports.RegionProvider = require('./src/RegionProvider'); | ||
exports.ScaleProvider = require('./src/ScaleProvider'); | ||
exports.ScaleProviderFactory = require('./src/ScaleProviderFactory'); | ||
exports.ScaleProviderIdentityFactory = require('./src/ScaleProviderIdentityFactory'); | ||
exports.SimplePropertyHandler = require('./src/SimplePropertyHandler'); | ||
exports.StreamUtils = require('./src/StreamUtils'); | ||
exports.TestResultsFormatter = require('./src/TestResultsFormatter'); | ||
exports.ImageDeltaCompressor = require('./src/ImageDeltaCompressor'); |
{ | ||
"name": "eyes.utils", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "General purpose Javascript utilities.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -178,2 +178,18 @@ /* | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Waits a specified amount of time before resolving the returned promise. | ||
* | ||
* @param {int} ms The amount of time to sleep in milliseconds. | ||
* @param {PromiseFactory} promiseFactory | ||
* @return {Promise<void>} A promise which is resolved when sleep is done. | ||
*/ | ||
GeneralUtils.sleep = function sleep(ms, promiseFactory) { | ||
return promiseFactory.makePromise(function (resolve) { | ||
setTimeout(function () { | ||
resolve(); | ||
}, ms); | ||
}); | ||
}; | ||
//noinspection JSUnusedGlobalSymbols | ||
/** | ||
@@ -180,0 +196,0 @@ * Convert a Date object to a RFC-1123 date string |
@@ -14,2 +14,5 @@ /* | ||
// for better compatibility with browserify | ||
global.setImmediate = require('timers').setImmediate; | ||
var fs = require('fs'), | ||
@@ -16,0 +19,0 @@ png = require('png-async'), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
1
64549
14
1498