Comparing version 0.1.4 to 0.1.5
@@ -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.JsAcl = f()}})(function(){var define,module,exports;return (function(){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}return e})()({1:[function(_dereq_,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(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){ | ||
'use strict'; | ||
@@ -420,3 +420,3 @@ | ||
if (self.hasResource(resourceId)) { | ||
throw new Error("Resource id 'resourceId' already exists in the ACL"); | ||
throw new Error("Resource '" + resourceId + "' already exists in the ACL"); | ||
} | ||
@@ -426,3 +426,3 @@ | ||
if (!self.hasResource(parent)) { | ||
throw new Error("Parent resource id not exists in the ACL"); | ||
throw new Error("Parent resource '" + parent + "' not exists in the ACL"); | ||
} | ||
@@ -1247,2 +1247,2 @@ | ||
},{"./acl-registry":1}]},{},[])("/src/index.js") | ||
}); | ||
}); |
{ | ||
"name": "js-acl", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Provides a lightweight and flexible ACL implementation for privileges management in JS/NodeJS", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/StyleT/js-acl", |
@@ -293,3 +293,3 @@ /** | ||
if (self.hasResource(resourceId)) { | ||
throw new Error("Resource id 'resourceId' already exists in the ACL"); | ||
throw new Error("Resource '" + resourceId + "' already exists in the ACL"); | ||
} | ||
@@ -299,3 +299,3 @@ | ||
if (!self.hasResource(parent)) { | ||
throw new Error("Parent resource id not exists in the ACL"); | ||
throw new Error("Parent resource '" + parent + "' not exists in the ACL"); | ||
} | ||
@@ -302,0 +302,0 @@ |
Sorry, the diff of this file is not supported yet
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
115936
2626