Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

data-generator-retail

Package Overview
Dependencies
Maintainers
1
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-generator-retail - npm Package Compare versions

Comparing version 3.8.0 to 3.8.3

src/categories.ts

6

esm/index.js

@@ -12,6 +12,6 @@ import generateCustomers from './customers';

db.customers = generateCustomers(db, options);
db.categories = generateCategories(db, options);
db.products = generateProducts(db, options);
db.categories = generateCategories();
db.products = generateProducts(db);
db.commands = generateCommands(db, options);
db.invoices = generateInvoices(db, options);
db.invoices = generateInvoices(db);
db.reviews = generateReviews(db, options);

@@ -18,0 +18,0 @@ finalize(db);

export default (function (db) {
var id = 0;
return db.commands
return (db.commands
.filter(function (command) { return command.status !== 'delivered'; })
// @ts-ignore
.sort(function (a, b) { return new Date(a.date) - new Date(b.date); })

@@ -16,3 +17,3 @@ .map(function (command) { return ({

total: command.total,
}); });
}); }));
});

@@ -17,6 +17,6 @@ "use strict";

db.customers = customers_1.default(db, options);
db.categories = categories_1.default(db, options);
db.products = products_1.default(db, options);
db.categories = categories_1.default();
db.products = products_1.default(db);
db.commands = commands_1.default(db, options);
db.invoices = invoices_1.default(db, options);
db.invoices = invoices_1.default(db);
db.reviews = reviews_1.default(db, options);

@@ -23,0 +23,0 @@ finalize_1.default(db);

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

var id = 0;
return db.commands
return (db.commands
.filter(function (command) { return command.status !== 'delivered'; })
// @ts-ignore
.sort(function (a, b) { return new Date(a.date) - new Date(b.date); })

@@ -19,3 +20,3 @@ .map(function (command) { return ({

total: command.total,
}); });
}); }));
});

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.randomFloat = exports.randomDate = exports.weightedBoolean = exports.weightedArrayElement = void 0;
var en_1 = __importDefault(require("faker/locale/en"));

@@ -8,0 +9,0 @@ exports.weightedArrayElement = function (values, weights) {

{
"name": "data-generator-retail",
"version": "3.8.0",
"version": "3.8.3",
"homepage": "https://github.com/marmelab/react-admin/tree/master/examples/data-generator",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/marmelab/react-admin/issues",

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