json-schema-faker
Advanced tools
Comparing version 0.5.0-rcv.46 to 0.5.0
@@ -31,2 +31,4 @@ import type { JsonValue, JsonObject } from 'type-fest'; | ||
random?: () => number | number; | ||
minDateTime?: Date | string | number; | ||
maxDateTime?: Date | string | number; | ||
renderTitle?: boolean; | ||
@@ -33,0 +35,0 @@ renderDescription?: boolean; |
{ | ||
"name": "json-schema-faker", | ||
"version": "0.5.0-rcv.46", | ||
"version": "0.5.0", | ||
"description": "JSON-Schema + fake data generators", | ||
@@ -13,8 +13,13 @@ "homepage": "http://json-schema-faker.js.org", | ||
"module": "dist/main.mjs", | ||
"browser": "dist/main.iife.js", | ||
"unpkg": "dist/bundle.cjs", | ||
"unpkg": "dist/bundle.js", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./dist/main.mjs", | ||
"require": "./dist/main.cjs" | ||
"require": "./dist/main.cjs", | ||
"browser": "./dist/main.iife.js" | ||
}, | ||
"./esm": { | ||
"types": "./index.d.ts", | ||
"import": "./index.js" | ||
} | ||
@@ -26,6 +31,7 @@ }, | ||
"test:ci": "npm run coverage:unit && npm run report -- -r lcov", | ||
"test:all": "npm run coverage:all && npm run report -- -r html", | ||
"test:all": "npm run test:unit && npm run test:schema", | ||
"test:run": "_mocha --exit --colors --recursive --parallel --loader=testdouble --watch-files 'tests/**' --watch-files 'src/**' --watch-extensions js,json -bR spec", | ||
"test:unit": "npm run test:run tests/unit --", | ||
"test:schema": "npm run test:run tests/schema --", | ||
"test:coverage": "npm run coverage:all && npm run report -- -r html", | ||
"test:integration": "npm run test:run tests/integration --", | ||
@@ -44,9 +50,7 @@ "coverage": "c8 --reporter=lcov -x '**/tests/**' -x '**/*.spec.mjs'", | ||
"pretest": "npm run lint && npm run build -- -ymain", | ||
"copy:vendor": "concat -o dist/vendor.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-browser-umd.min.js", | ||
"copy:bundle": "concat -o dist/bundle.js dist/vendor.js dist/main.iife.js", | ||
"copy:bundle": "concat -o dist/bundle.js dist/main.iife.js", | ||
"copy:wargs": "concat -o dist/wargs.cjs node_modules/wargs/dist/wargs.cjs", | ||
"entry:cjs": "echo 'module.exports = require(\"./main.cjs\").default;' > dist/index.cjs", | ||
"_prepublishOnly": "npm run build -- -f", | ||
"entry:cjs": "node patch.js", | ||
"postbuild": "npm run copy:bundle && npm run entry:cjs", | ||
"prebuild": "mkdir -p dist && npm run copy:vendor && npm run copy:wargs", | ||
"prebuild": "mkdir -p dist && npm run copy:wargs", | ||
"codecov": "codecov -e TRAVIS_NODE_VERSION" | ||
@@ -61,9 +65,6 @@ }, | ||
"bundle": [ | ||
"**/main*.js", | ||
"**/main.*.js", | ||
"**/shared.js", | ||
"**/app.js" | ||
], | ||
"external": [ | ||
"json-schema-ref-parser", | ||
"jsonpath-plus" | ||
], | ||
"options": { | ||
@@ -99,3 +100,4 @@ "less": { | ||
"devDependencies": { | ||
"@faker-js/faker": "^5.5.3", | ||
"@apidevtools/json-schema-ref-parser": "^10.1.0", | ||
"@faker-js/faker": "^7.6.0", | ||
"@types/json-schema": "^7.0.9", | ||
@@ -120,2 +122,3 @@ "ajv": "^6.12.6", | ||
"is-my-json-valid": "^2.19.0", | ||
"jsonpath-plus": "^7.2.0", | ||
"less": "^4.1.1", | ||
@@ -144,7 +147,3 @@ "less-plugin-autoprefix": "^2.0.0", | ||
"z-schema": "^5.0.4" | ||
}, | ||
"dependencies": { | ||
"json-schema-ref-parser": "^6.1.0", | ||
"jsonpath-plus": "^5.1.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
0
1
2
1
15618
45
5
179
1
- Removedjson-schema-ref-parser@^6.1.0
- Removedjsonpath-plus@^5.1.0
- Removedargparse@1.0.10(transitive)
- Removedcall-me-maybe@1.0.2(transitive)
- Removedesprima@4.0.1(transitive)
- Removedformat-util@1.0.5(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjson-schema-ref-parser@6.1.0(transitive)
- Removedjsonpath-plus@5.1.0(transitive)
- Removedono@4.0.11(transitive)
- Removedsprintf-js@1.0.3(transitive)