@colophon/schema
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -1,6 +0,1 @@ | ||
const latest = '1.1' | ||
module.exports = { | ||
schema: require(`./schema/${latest}/schema.json`), | ||
regex: require(`./schema/${latest}/regex`) | ||
} | ||
module.exports = require('./versions')['1.1'] |
{ | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"name": "@colophon/schema", | ||
@@ -21,3 +21,5 @@ "description": "Standarized project metadata to specify the components, constructs and authorship of software", | ||
"files": [ | ||
"spec" | ||
"schema", | ||
"index.js", | ||
"versions.js" | ||
], | ||
@@ -24,0 +26,0 @@ "bugs": { |
@@ -82,8 +82,2 @@ # Colophon Schema | ||
```bash | ||
npm install --production --save @colophon/schema | ||
``` | ||
## Install | ||
```bash | ||
npm install @colophon/schema | ||
@@ -98,2 +92,10 @@ ``` | ||
### Referencing older versions | ||
```js | ||
const schemas = require('@colophon/schema/versions') | ||
const { schema, regex } = schemas['1.0'] | ||
``` | ||
## Credits | ||
@@ -100,0 +102,0 @@ |
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
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
35349
10
385
119
1