cspell-io
Advanced tools
Comparing version 5.0.1-alpha.5 to 5.0.1-alpha.6
"use strict"; | ||
var __asyncValues = (this && this.__asyncValues) || function (o) { | ||
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); | ||
var m = o[Symbol.asyncIterator], i; | ||
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); | ||
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } | ||
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -16,17 +9,6 @@ exports.toArray = void 0; | ||
async function toArray(asyncIterable) { | ||
var e_1, _a; | ||
const data = []; | ||
try { | ||
for (var asyncIterable_1 = __asyncValues(asyncIterable), asyncIterable_1_1; asyncIterable_1_1 = await asyncIterable_1.next(), !asyncIterable_1_1.done;) { | ||
const item = asyncIterable_1_1.value; | ||
data.push(item); | ||
} | ||
for await (const item of asyncIterable) { | ||
data.push(item); | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) await _a.call(asyncIterable_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
return data; | ||
@@ -33,0 +15,0 @@ } |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -10,5 +10,6 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.asyncIterableToArray = void 0; | ||
__exportStar(require("./file"), exports); | ||
@@ -15,0 +16,0 @@ var asyncIterable_1 = require("./async/asyncIterable"); |
{ | ||
"name": "cspell-io", | ||
"version": "5.0.1-alpha.5", | ||
"version": "5.0.1-alpha.6", | ||
"description": "A library of useful I/O functions used across various cspell tools.", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"iconv-lite": "^0.4.24", | ||
"iconv-lite": "^0.6.2", | ||
"iterable-to-stream": "^1.0.1" | ||
@@ -59,5 +59,5 @@ }, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=12.0.0" | ||
}, | ||
"gitHead": "e3c554df4c7bdedd2dd71c72d87563ee44067e49" | ||
"gitHead": "ffc22b5a4f721b114b95a8c521dcac86faae0851" | ||
} |
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
12498
238
+ Addediconv-lite@0.6.3(transitive)
- Removediconv-lite@0.4.24(transitive)
Updatediconv-lite@^0.6.2