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
177
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.1.0 to 3.2.2

9

esm/products.js

@@ -0,1 +1,8 @@

var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
import { random, lorem } from 'faker/locale/en';

@@ -5,3 +12,3 @@ import { randomFloat, weightedBoolean } from './utils';

var id = 0;
return db.categories.reduce(function (acc, category) { return acc.concat(Array.from(Array(10).keys()).map(function (index) {
return db.categories.reduce(function (acc, category) { return __spreadArrays(acc, Array.from(Array(10).keys()).map(function (index) {
var width = randomFloat(10, 40);

@@ -8,0 +15,0 @@ var height = randomFloat(10, 40);

@@ -0,1 +1,8 @@

var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
import { random, lorem } from 'faker/locale/en';

@@ -16,3 +23,3 @@ import subDays from 'date-fns/sub_days';

.filter(function (command) { return reviewers.indexOf(command.customer_id) !== -1; })
.reduce(function (acc, command) { return acc.concat(command.basket
.reduce(function (acc, command) { return __spreadArrays(acc, command.basket
.filter(function () { return weightedBoolean(40); }) // reviewers review 40% of their products

@@ -19,0 +26,0 @@ .map(function (product) {

"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -7,3 +14,3 @@ var en_1 = require("faker/locale/en");

var id = 0;
return db.categories.reduce(function (acc, category) { return acc.concat(Array.from(Array(10).keys()).map(function (index) {
return db.categories.reduce(function (acc, category) { return __spreadArrays(acc, Array.from(Array(10).keys()).map(function (index) {
var width = utils_1.randomFloat(10, 40);

@@ -10,0 +17,0 @@ var height = utils_1.randomFloat(10, 40);

"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -21,3 +28,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

.filter(function (command) { return reviewers.indexOf(command.customer_id) !== -1; })
.reduce(function (acc, command) { return acc.concat(command.basket
.reduce(function (acc, command) { return __spreadArrays(acc, command.basket
.filter(function () { return utils_1.weightedBoolean(40); }) // reviewers review 40% of their products

@@ -24,0 +31,0 @@ .map(function (product) {

6

package.json
{
"name": "data-generator-retail",
"version": "3.1.0",
"version": "3.2.2",
"homepage": "https://github.com/marmelab/react-admin/tree/master/examples/data-generator",

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

"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},

@@ -23,3 +23,3 @@ "dependencies": {

},
"gitHead": "f33a78ee3fe11aee11a9bc92569aba1179057cd9"
"gitHead": "dfca3711e62e75cf25daa3b6b0c773183ff7ed89"
}
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