node-sec-patterns
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "node-sec-patterns", | ||
"description": "Allow projects control over which dependencies can create objects that encapsulate security guarantees.", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"keywords": [ | ||
@@ -45,3 +45,3 @@ "design-patterns", | ||
"eslint": "^4.15.0", | ||
"eslint-config-standard": "*", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-config-strict": "*", | ||
@@ -52,3 +52,3 @@ "istanbul": "^0.4.5", | ||
"pre-commit": "^1.2.2", | ||
"standard": "*" | ||
"standard": "^11.0.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "eslintConfig": { |
@@ -9,3 +9,25 @@ # Node security design patterns | ||
[![npm](https://img.shields.io/npm/v/node-sec-patterns.svg)](https://www.npmjs.com/package/node-sec-patterns) | ||
[![Install Size](https://packagephobia.now.sh/badge?p=safesql)](https://packagephobia.now.sh/result?p=node-sec-patterns) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/mikesamuel/node-sec-patterns/badge.svg?targetFile=package.json)](https://snyk.io/test/github/mikesamuel/node-sec-patterns?targetFile=package.json) | ||
## Table of Contents | ||
* [Installation](#installation) | ||
* [Goal](#goal) | ||
* [Glossary](#glossary) | ||
* [Getting Started](#getting-started) | ||
* [Configuration](#configuration) | ||
* [Defining a Mintable Type](#defining-a-mintable-type) | ||
* [Example](#example) | ||
* [Creating Mintable values](#creating-mintable-values) | ||
* [Degrading gracefully](#degrading-gracefully) | ||
* [Verifying values](#verifying-values) | ||
* [Workflow](#workflow---making-security-critical-deep-dependencies-apparent) | ||
## Installation | ||
```bash | ||
$ npm install node-sec-patterns | ||
``` | ||
## Goal | ||
@@ -17,3 +39,3 @@ Make it easier for project teams to produce code that preserves | ||
development practices that make it transparent what code has to | ||
function correctly for a security property hold. | ||
function correctly for a security property to hold. | ||
@@ -108,3 +130,3 @@ ## Glossary | ||
```js | ||
const { Mintable } = require('mintable') | ||
const { Mintable } = require('node-sec-patterns') | ||
@@ -187,2 +209,6 @@ class FooContractType extends Mintable { | ||
```js | ||
const isFoo = Mintable.verifierFor(FooContractType) | ||
``` | ||
## Workflow - making security critical deep dependencies apparent | ||
@@ -189,0 +215,0 @@ A package may allow some modules access to the minter but not others. |
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
33051
245