@microsoft/node-core-library
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "3.3.0", | ||
"tag": "@microsoft/node-core-library_v3.3.0", | ||
"date": "Mon, 08 Oct 2018 16:04:27 GMT", | ||
"comments": { | ||
"minor": [ | ||
{ | ||
"comment": "Renaming PromiseUtilities to LegacyAdapters" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "3.2.0", | ||
@@ -7,0 +19,0 @@ "tag": "@microsoft/node-core-library_v3.2.0", |
# Change Log - @microsoft/node-core-library | ||
This log was last generated on Sun, 07 Oct 2018 06:15:56 GMT and should not be manually modified. | ||
This log was last generated on Mon, 08 Oct 2018 16:04:27 GMT and should not be manually modified. | ||
## 3.3.0 | ||
Mon, 08 Oct 2018 16:04:27 GMT | ||
### Minor changes | ||
- Renaming PromiseUtilities to LegacyAdapters | ||
## 3.2.0 | ||
@@ -6,0 +13,0 @@ Sun, 07 Oct 2018 06:15:56 GMT |
@@ -1019,2 +1019,20 @@ /** | ||
/** | ||
* Helper functions used when interacting with APIs that do not follow modern coding practices. | ||
* | ||
* @beta | ||
*/ | ||
export declare class LegacyAdapters { | ||
/** | ||
* This function wraps a function with a callback in a promise. | ||
*/ | ||
static convertCallbackToPromise<TResult, TError>(fn: (cb: callback<TResult, TError>) => void): Promise<TResult>; | ||
static convertCallbackToPromise<TResult, TError, TArg1>(fn: (arg1: TArg1, cb: callback<TResult, TError>) => void, arg1: TArg1): Promise<TResult>; | ||
static convertCallbackToPromise<TResult, TError, TArg1, TArg2>(fn: (arg1: TArg1, arg2: TArg2, cb: callback<TResult, TError>) => void, arg1: TArg1, arg2: TArg2): Promise<TResult>; | ||
/** | ||
* Normalizes an object into an `Error` object. | ||
*/ | ||
static scrubError(error: Error | string | any): Error; | ||
} | ||
/** | ||
* A helper utility for working with file-based locks. | ||
@@ -1346,16 +1364,2 @@ * This class should only be used for locking resources across processes, | ||
/** | ||
* This is a set of utilities for constructing and interacting with promises. | ||
* | ||
* @beta | ||
*/ | ||
export declare class PromiseUtilities { | ||
/** | ||
* This function wraps a function with a callback in a promise. | ||
*/ | ||
static promiseify<TResult, TError>(fn: (cb: callback<TResult, TError>) => void): Promise<TResult>; | ||
static promiseify<TResult, TError, TArg1>(fn: (arg1: TArg1, cb: callback<TResult, TError>) => void, arg1: TArg1): Promise<TResult>; | ||
static promiseify<TResult, TError, TArg1, TArg2>(fn: (arg1: TArg1, arg2: TArg2, cb: callback<TResult, TError>) => void, arg1: TArg1, arg2: TArg2): Promise<TResult>; | ||
} | ||
/** | ||
* The ProtectableMap provides an easy way for an API to expose a `Map<K, V>` property | ||
@@ -1362,0 +1366,0 @@ * while intercepting and validating any write operations that are performed by |
@@ -22,2 +22,2 @@ /** | ||
export { FileWriter, IFileWriterFlags } from './FileWriter'; | ||
export { PromiseUtilities, callback } from './PromiseUtilities'; | ||
export { LegacyAdapters, callback } from './LegacyAdapters'; |
@@ -31,4 +31,4 @@ "use strict"; | ||
exports.FileWriter = FileWriter_1.FileWriter; | ||
var PromiseUtilities_1 = require("./PromiseUtilities"); | ||
exports.PromiseUtilities = PromiseUtilities_1.PromiseUtilities; | ||
var LegacyAdapters_1 = require("./LegacyAdapters"); | ||
exports.LegacyAdapters = LegacyAdapters_1.LegacyAdapters; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@microsoft/node-core-library", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "Core libraries that every NodeJS toolchain project should use", | ||
@@ -29,5 +29,5 @@ "main": "lib/index.js", | ||
"gulp": "~3.9.1", | ||
"@microsoft/node-library-build": "5.0.6", | ||
"@microsoft/rush-stack-compiler": "0.1.3" | ||
"@microsoft/node-library-build": "5.0.16", | ||
"@microsoft/rush-stack-compiler": "0.1.11" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
435291
5947