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

accesscontrol

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accesscontrol - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

5

CHANGELOG.md
## AccessControl - Change Log
### v2.2.1 (2018-02-24)
- **Fixed** an issue with attribute filtering caused by the core dependency Notation. Now [fixed](https://github.com/onury/notation/issues/7) and updated.
- **(Dev)** Updated dev-dependencies to latest versions. Removed yarn.
### v2.2.0 (2017-11-25)

@@ -4,0 +9,0 @@

4

lib/AccessControl.d.ts

@@ -9,3 +9,3 @@ import { Access, IAccessInfo, Query, IQueryInfo, Permission } from './core';

* Construct an `AccessControl` instance by either passing a grants object (or
* array fetched from database) or simple omit `grants` parameter if you are
* array fetched from database) or simply omit `grants` parameter if you are
* willing to build it programmatically.

@@ -41,3 +41,3 @@ *

* value or as a separate property) is omitted, it will default to `"any"`.
* e.g. `"create"` —» `"create:any"`
* e.g. `"create"` ➞ `"create:any"`
*

@@ -44,0 +44,0 @@ * Below are equivalent:

@@ -13,3 +13,3 @@ "use strict";

* Construct an `AccessControl` instance by either passing a grants object (or
* array fetched from database) or simple omit `grants` parameter if you are
* array fetched from database) or simply omit `grants` parameter if you are
* willing to build it programmatically.

@@ -45,3 +45,3 @@ *

* value or as a separate property) is omitted, it will default to `"any"`.
* e.g. `"create"` —» `"create:any"`
* e.g. `"create"` ➞ `"create:any"`
*

@@ -48,0 +48,0 @@ * Below are equivalent:

{
"name": "accesscontrol",
"version": "2.2.0",
"version": "2.2.1",
"description": "Role and Attribute based Access Control for Node.js",

@@ -18,9 +18,9 @@ "main": "./index.js",

"vuls": "snyk test",
"deps": "yarn upgrade-interactive && snyk test",
"deps": "npm-check -u && snyk test",
"clean": "rimraf ./lib",
"build": "yarn run clean && mkdirp ./lib && tsc",
"test": "yarn run build && jest --verbose --no-cache",
"test!": "yarn jest --verbose --no-cache",
"cover": "yarn run build && jest --coverage --verbose --no-cache",
"cover!": "yarn jest --coverage --verbose --no-cache",
"build": "npm run clean && mkdirp ./lib && tsc",
"test": "npm run build && jest --verbose --no-cache",
"test!": "jest --verbose --no-cache",
"cover": "npm run build && jest --coverage --verbose --no-cache",
"cover!": "jest --coverage --verbose --no-cache",
"coveralls": "cat ./test/.coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v",

@@ -59,4 +59,3 @@ "report": "open ./test/.coverage/lcov-report/index.html",

],
"coverageDirectory": "./test/.coverage",
"mapCoverage": true
"coverageDirectory": "./test/.coverage"
},

@@ -104,17 +103,17 @@ "repository": {

"devDependencies": {
"@types/jest": "^21.1.6",
"@types/node": "^8.0.32",
"@types/jest": "^22.1.3",
"@types/node": "^9.4.6",
"coveralls": "^3.0.0",
"docma": "^1.5.1",
"jest-cli": "^21.2.1",
"docma": "^1.5.3",
"jest-cli": "^22.4.2",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"rimraf": "^2.6.2",
"snyk": "^1.49.4",
"ts-jest": "^21.2.3",
"typescript": "^2.5.3"
"snyk": "^1.69.9",
"ts-jest": "^22.0.4",
"typescript": "^2.7.2"
},
"dependencies": {
"notation": "^1.3.5"
"notation": "^1.3.6"
}
}

@@ -7,3 +7,3 @@ <p align="center"><img width="465" height="170" src="https://raw.github.com/onury/accesscontrol/master/ac-logo.png" /></p>

[![Known Vulnerabilities](https://snyk.io/test/github/onury/accesscontrol/badge.svg)](https://snyk.io/test/github/onury/accesscontrol)
[![maintained](https://img.shields.io/maintenance/yes/2017.svg)](https://github.com/onury/accesscontrol/graphs/commit-activity)
[![maintained](https://img.shields.io/maintenance/yes/2018.svg)](https://github.com/onury/accesscontrol/graphs/commit-activity)
[![npm](http://img.shields.io/npm/v/accesscontrol.svg)](https://www.npmjs.com/package/accesscontrol)

@@ -15,8 +15,6 @@ [![release](https://img.shields.io/github/release/onury/accesscontrol.svg)](https://github.com/onury/accesscontrol)

> © 2017, Onur Yıldırım ([@onury](https://github.com/onury)). MIT License.
> © 2018, Onur Yıldırım ([@onury](https://github.com/onury)). MIT License.
Role and Attribute based Access Control for Node.js
`npm i accesscontrol --save`
Many [RBAC][rbac] (Role-Based Access Control) implementations differ, but the basics is widely adopted since it simulates real life role (job) assignments. But while data is getting more and more complex; you need to define policies on resources, subjects or even environments. This is called [ABAC][abac] (Attribute-Based Access Control).

@@ -43,2 +41,8 @@

## Installation
with [**npm**](https://www.npmjs.com/package/accesscontrol): `npm i accesscontrol --save`
with [**yarn**](https://yarn.pm/accesscontrol): `yarn add accesscontrol`
## Guide

@@ -283,3 +287,3 @@

```sh
yarn install
npm install
```

@@ -290,3 +294,3 @@

```sh
yarn build && yarn cover
npm run build && npm run cover
```

@@ -293,0 +297,0 @@

Sorry, the diff of this file is not supported yet

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