@pulumi/query
Advanced tools
Comparing version
{ | ||
"name": "@pulumi/query", | ||
"version": "v0.3.1-dev.1571689690+g5952b72", | ||
"version": "v0.3.1-dev.1571696043+g54776f9", | ||
"description": "An simple, relational SDK for querying TypeScript and JavaScript data structures", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -80,30 +80,32 @@ "use strict"; | ||
function from(source) { | ||
return source instanceof Function | ||
? wrapAsyncIterable(source) | ||
: wrapAsyncIterable(function () { | ||
return __asyncGenerator(this, arguments, function* () { | ||
var e_1, _a; | ||
if (interfaces_1.isIterable(source)) { | ||
for (const t of source) { | ||
yield yield __await(t); | ||
} | ||
} | ||
else { | ||
try { | ||
for (var source_1 = __asyncValues(source), source_1_1; source_1_1 = yield __await(source_1.next()), !source_1_1.done;) { | ||
const t = source_1_1.value; | ||
return source === undefined | ||
? wrapAsyncIterable(() => []) | ||
: source instanceof Function | ||
? wrapAsyncIterable(source) | ||
: wrapAsyncIterable(function () { | ||
return __asyncGenerator(this, arguments, function* () { | ||
var e_1, _a; | ||
if (interfaces_1.isIterable(source)) { | ||
for (const t of source) { | ||
yield yield __await(t); | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
else { | ||
try { | ||
if (source_1_1 && !source_1_1.done && (_a = source_1.return)) yield __await(_a.call(source_1)); | ||
for (var source_1 = __asyncValues(source), source_1_1; source_1_1 = yield __await(source_1.next()), !source_1_1.done;) { | ||
const t = source_1_1.value; | ||
yield yield __await(t); | ||
} | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (source_1_1 && !source_1_1.done && (_a = source_1.return)) yield __await(_a.call(source_1)); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
} | ||
} | ||
}); | ||
}); | ||
}); | ||
} | ||
exports.from = from; |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
192571
0.09%3677
0.05%