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

@unmock/jaymock

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unmock/jaymock - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

4

package.json
{
"name": "@unmock/jaymock",
"version": "1.0.9",
"version": "1.0.10",
"description": "Minimal fake JSON test data generator",

@@ -10,3 +10,3 @@ "main": "index.js",

"coverage:upload": "nyc report --reporter=lcov && codecov",
"coverage:check": "nyc report && nyc check-coverage --lines 90 --functions 90 --branches 85"
"coverage:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100"
},

@@ -13,0 +13,0 @@ "files": [

@@ -98,3 +98,3 @@ # jaymock

Each object's value can be one of [`Faker.js`'s API methods](https://github.com/marak/Faker.js/#api-methods), in the format `'{topic}.{subtopic}'` (e.g. `'name.firstName'`) or a custom method, defined using the `.extend` function, in the format `'{function_name}'` (e.g. `'chance.ssn'` will call `chance.ssn()`).
Each object's value can be one of [`Faker.js`'s API methods](https://github.com/marak/Faker.js/#api-methods), in the format `'{topic}.{subtopic}'` (e.g. `'name.firstName'`) or a custom method, defined using the `.extend` function, in the format `'{function_name}'` or `{function_name}.{nested_function_name}` (e.g. `'foo'` will call `foo()` and `'foo.bar'` will call `foo.bar()`).

@@ -101,0 +101,0 @@ A fake value can be generated `n` times, into an array of `n` values, by including `|n` at the end of the individual object's method name (e.g. `'name.firstName|5'` will generate an array, populated with `5` fake first names). This also works with custom functions, accordingly.

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