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

node-sec-patterns

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sec-patterns - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

package.json
{
"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.

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