Socket
Socket
Sign inDemoInstall

@tensorflow/tfjs-data

Package Overview
Dependencies
Maintainers
13
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tensorflow/tfjs-data - npm Package Compare versions

Comparing version 1.0.0-alpha2 to 1.0.0-alpha3

11

dist/readers.d.ts

@@ -91,3 +91,3 @@ /**

*/
export declare function csv(source: string, csvConfig?: CSVConfig): CSVDataset;
export declare function csv(source: RequestInfo, csvConfig?: CSVConfig): CSVDataset;
/**

@@ -120,4 +120,7 @@ * Create a `Dataset` that produces each element by calling a provided function.

* Create a `Dataset` that produces each element from provided JavaScript
* generator, which is a function* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions),
* or a function that returns an iterator(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions).
* generator, which is a function*
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions),
* or a function that returns an
* iterator
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions).
*

@@ -177,2 +180,2 @@ * The returned iterator should have `.next()` function that returns element in

*/
export declare function generator<T extends DataElement>(generator: () => (Iterator<T> | Promise<Iterator<T>>)): Dataset<T>;
export declare function generator<T extends DataElement>(generator: () => Iterator<T> | Promise<Iterator<T>>): Dataset<T>;

@@ -168,4 +168,7 @@ "use strict";

* Create a `Dataset` that produces each element from provided JavaScript
* generator, which is a function* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions),
* or a function that returns an iterator(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions).
* generator, which is a function*
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions),
* or a function that returns an
* iterator
* (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Generator_functions).
*

@@ -227,12 +230,15 @@ * The returned iterator should have `.next()` function that returns element in

var _this = this;
return dataset_1.datasetFromIteratorFn(function () { return __awaiter(_this, void 0, void 0, function () { var _a; return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = lazy_iterator_1.iteratorFromFunction;
return [4 /*yield*/, generator()];
case 1: return [2 /*return*/, _a.apply(void 0, [(_b.sent()).next])];
}
}); }); });
return dataset_1.datasetFromIteratorFn(function () { return __awaiter(_this, void 0, void 0, function () {
var gen;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, generator()];
case 1:
gen = _a.sent();
return [2 /*return*/, lazy_iterator_1.iteratorFromFunction(function () { return gen.next(); })];
}
});
}); });
}
exports.generator = generator;
//# sourceMappingURL=readers.js.map
/** @license See the LICENSE file. */
declare const version = "1.0.0-alpha2";
declare const version = "1.0.0-alpha3";
export { version };

@@ -5,4 +5,4 @@ "use strict";

// This code is auto-generated, do not modify this file!
var version = '1.0.0-alpha2';
var version = '1.0.0-alpha3';
exports.version = version;
//# sourceMappingURL=version.js.map
{
"name": "@tensorflow/tfjs-data",
"version": "1.0.0-alpha2",
"version": "1.0.0-alpha3",
"description": "TensorFlow Data API in JavaScript",

@@ -14,3 +14,3 @@ "private": false,

"devDependencies": {
"@tensorflow/tfjs-core": "1.0.0-alpha2",
"@tensorflow/tfjs-core": "1.0.0-alpha3",
"@types/fetch-mock": "^6.0.1",

@@ -56,3 +56,3 @@ "@types/jasmine": "~2.5.53",

"peerDependencies": {
"@tensorflow/tfjs-core": "1.0.0-alpha2"
"@tensorflow/tfjs-core": "1.0.0-alpha3"
},

@@ -59,0 +59,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc