@e2y/mirakl-client
Advanced tools
Comparing version 1.1.21 to 1.1.22
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AddressMother = void 0; | ||
const faker_1 = require("faker"); | ||
const faker_1 = require("@faker-js/faker"); | ||
const { address, name, helpers } = faker_1.faker; | ||
class AddressMother { | ||
static random() { | ||
return { | ||
city: faker_1.address.city(), | ||
civility: faker_1.random.arrayElement(['Mr', 'Mrs', 'Miss']), | ||
country: faker_1.address.countryCode('alpha-3'), | ||
firstname: faker_1.name.firstName(), | ||
lastname: faker_1.name.lastName(), | ||
state: faker_1.address.state(), | ||
street1: faker_1.address.streetAddress(), | ||
street2: faker_1.address.streetSuffix(), | ||
zip_code: faker_1.address.zipCode('#####') | ||
city: address.city(), | ||
civility: helpers.arrayElement(['Mr', 'Mrs', 'Miss']), | ||
country: address.countryCode('alpha-3'), | ||
firstname: name.firstName(), | ||
lastname: name.lastName(), | ||
state: address.state(), | ||
street1: address.streetAddress(), | ||
street2: address.streetSuffix(), | ||
zip_code: address.zipCode('#####') | ||
}; | ||
@@ -21,2 +22,2 @@ } | ||
exports.AddressMother = AddressMother; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWRkcmVzc01vdGhlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vYmplY3QtbW90aGVycy9BZGRyZXNzTW90aGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlDQUE4QztBQUk5QyxNQUFhLGFBQWE7SUFDakIsTUFBTSxDQUFDLE1BQU07UUFDbEIsT0FBTztZQUNMLElBQUksRUFBRSxlQUFPLENBQUMsSUFBSSxFQUFFO1lBQ3BCLFFBQVEsRUFBRSxjQUFNLENBQUMsWUFBWSxDQUFDLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxNQUFNLENBQUMsQ0FBQztZQUNwRCxPQUFPLEVBQUU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BRSxJQUFJLENBQUMsUUFBUSxFQUFFO1lBQ3pCLEtBQUssRUFBRSxPQUFPLENBQUMsS0FBSyxFQUFFO1lBQ3RCLE9BQU8sRUFBRSxPQUFPLENBQUMsYUFBYSxFQUFFO1lBQ2hDLE9BQU8sRUFBRSxPQUFPLENBQUMsWUFBWSxFQUFFO1lBQy9CLFFBQVEsRUFBRSxPQUFPLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQztTQUNuQyxDQUFDO0lBQ0osQ0FBQztDQUNGO0FBZEQsc0NBY0MifQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProDetailsMother = void 0; | ||
const faker_1 = require("faker"); | ||
const faker_1 = require("@faker-js/faker"); | ||
const { company, datatype } = faker_1.faker; | ||
class ProDetailsMother { | ||
static random() { | ||
return { | ||
VAT_number: faker_1.datatype.number({ min: 10000000000 }).toString(), | ||
corporate_name: faker_1.company.companyName(), | ||
identification_number: faker_1.datatype.number({ min: 10000000000 }).toString(), | ||
tax_identification_number: faker_1.datatype.number({ min: 10000000000 }).toString() | ||
VAT_number: datatype.number({ min: 10000000000 }).toString(), | ||
corporate_name: company.companyName(), | ||
identification_number: datatype.number({ min: 10000000000 }).toString(), | ||
tax_identification_number: datatype.number({ min: 10000000000 }).toString() | ||
}; | ||
@@ -16,2 +17,2 @@ } | ||
exports.ProDetailsMother = ProDetailsMother; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJvRGV0YWlsc01vdGhlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vYmplY3QtbW90aGVycy9Qcm9EZXRhaWxzTW90aGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlDQUEwQztBQUkxQyxNQUFhLGdCQUFnQjtJQUNwQixNQUFNLENBQUMsTUFBTTtRQUNsQixPQUFPO1lBQ0wsVUFBVSxF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sRUFBRTtZQUN2RSx5QkFBeUIsRUFBRSxRQUFRLENBQUMsTUFBTSxDQUFDLEVBQUUsR0FBRyxFQUFFLFdBQVcsRUFBRSxDQUFDLENBQUMsUUFBUSxFQUFFO1NBQzVFLENBQUM7SUFDSixDQUFDO0NBQ0Y7QUFURCw0Q0FTQyJ9 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ShopMother = void 0; | ||
const faker_1 = require("faker"); | ||
const faker_1 = require("@faker-js/faker"); | ||
const AddressMother_1 = require("./AddressMother"); | ||
const ProDetailsMother_1 = require("./ProDetailsMother"); | ||
const { address, company, internet, random } = faker_1.faker; | ||
class ShopMother { | ||
@@ -11,7 +12,7 @@ static random(params) { | ||
address: AddressMother_1.AddressMother.random(), | ||
description: faker_1.company.bs(), | ||
email: faker_1.internet.exampleEmail(faker_1.random.alpha({ count: 8 })), | ||
description: company.bs(), | ||
email: internet.exampleEmail(random.alpha({ count: 8 })), | ||
payment_blocked: false, | ||
shipping_country: faker_1.address.countryCode('alpha-3'), | ||
shop_name: faker_1.company.companyName(), | ||
shipping_country: address.countryCode('alpha-3'), | ||
shop_name: company.companyName(), | ||
suspend: false | ||
@@ -35,2 +36,2 @@ }; | ||
exports.ShopMother = ShopMother; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2hvcE1vdGhlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vYmplY3QtbW90aGVycy9TaG9wTW90aGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGlDQUEyRDtBQUczRCxtREFBZ0Q7QUFDaEQseURBQXNEO0FBRXRELE1BQWEsVUFBVTtJQUNkLE1BQU0sQ0FBQyxNQUFNLENBQUMsTUFBc0I7UUFDekMsSUFBSSxJQUFJLEdBQVM7WUFDZixPQUFPLEVBQUUsNkJBQWEsQ0FBQyxNQUFNLEV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QUUsS0FBSyxFQUFFLElBQUksQ0FBQyxLQUFLLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxDQUFDO1lBQzVELElBQUksbUNBQVEsSUFBSSxLQUFFLFFBQVEsRUFBRSxPQUFPLEdBQUUsQ0FBQztTQUN2QztRQUVELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVNLE1BQU0sQ0FBQyxrQkFBa0IsQ0FBQyxNQUFzQjtRQUNyRCxNQUFNLGdCQUFnQixHQUFHLG1DQUFnQixDQUFDLE1BQU0sRUFBRSxDQUFDO1FBQ25ELE1BQU0sSUFBSSxHQUFHLFVBQVUsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUM7UUFFdkMsSUFBSSxDQUFDLGVBQWUsR0FBRyxJQUFJLENBQUM7UUFDNUIsSUFBSSxDQUFDLFdBQVcsR0FBRyxnQkFBZ0IsQ0FBQztRQUVwQyxPQUFPLElBQUksQ0FBQztJQUNkLENBQUM7Q0FDRjtBQS9CRCxnQ0ErQkMifQ== |
{ | ||
"name": "@e2y/mirakl-client", | ||
"version": "1.1.21", | ||
"version": "1.1.22", | ||
"description": "Mirakl Api Client", | ||
@@ -29,4 +29,4 @@ "author": "e2y", | ||
"dependencies": { | ||
"@faker-js/faker": "^7.3.0", | ||
"@types/chai": "^4.2.22", | ||
"@types/faker": "^5.5.8", | ||
"@types/form-data": "^2.5.0", | ||
@@ -39,3 +39,2 @@ "@types/node": "^14.0.1", | ||
"chai": "^4.3.4", | ||
"faker": "^5.5.3", | ||
"form-data": "^3.0.0", | ||
@@ -47,3 +46,3 @@ "papaparse": "^5.3.1", | ||
}, | ||
"gitHead": "135df9d4e45ab06e89ab016f6139b448b56e0063" | ||
"gitHead": "dde4c6fd1db640f7bbc8d5a4d54a228a0151b1a5" | ||
} |
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
147147
14
2839
+ Added@faker-js/faker@^7.3.0
+ Added@faker-js/faker@7.6.0(transitive)
- Removed@types/faker@^5.5.8
- Removedfaker@^5.5.3
- Removed@types/faker@5.5.9(transitive)
- Removedfaker@5.5.3(transitive)