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

js-acl

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-acl - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

test/acl-registry.test.js

6

dist/acl.js

@@ -1,2 +0,2 @@

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Acl = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JsAcl = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
'use strict';

@@ -127,3 +127,3 @@

module.exports = AclRegistry;
},{}],"/src/index.js":[function(require,module,exports){
},{}],"/src/index.js":[function(_dereq_,module,exports){
/**

@@ -154,3 +154,3 @@ * @interface AclResourceInterface

var AclRegistry = require('./acl-registry');
var AclRegistry = _dereq_('./acl-registry');

@@ -157,0 +157,0 @@ function Acl() {

{
"name": "js-acl",
"version": "0.1.2",
"version": "0.1.3",
"description": "Provides a lightweight and flexible ACL implementation for privileges management in JS/NodeJS",

@@ -8,3 +8,3 @@ "homepage": "https://github.com/StyleT/js-acl",

"scripts": {
"compile": "browserify -s Acl -r ./src/index.js -o ./dist/acl.js",
"compile": "browserify -s JsAcl -r ./src/index.js | derequire > ./dist/acl.js",
"bower": "bower",

@@ -35,2 +35,3 @@ "test": "mocha",

"chai": "^3.5.0",
"derequire": "^2.0.3",
"istanbul": "^0.4.3",

@@ -37,0 +38,0 @@ "karma": "^0.13.22",

# JS ACL
[![Build Status](https://travis-ci.org/StyleT/js-acl.svg?branch=master)](https://travis-ci.org/StyleT/angularjs-acl)
[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://github.com/StyleT/angularjs-acl/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/StyleT/js-acl.svg?branch=master)](https://travis-ci.org/StyleT/js-acl)
[![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://github.com/StyleT/js-acl/blob/master/LICENSE)

@@ -39,3 +39,6 @@ ---

```js
//In case of Node.js
const AclService = require('js-acl');
//In case of Browser
var AclService = window.JsAcl;

@@ -42,0 +45,0 @@ //All these actions you also can do in the middle of app execution

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