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

@endemolshinegroup/acl

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endemolshinegroup/acl - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

dist/Errors/AbstractError.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.2](https://github.com/EndemolShineGroup/acl/compare/v1.1.1...v1.1.2) (2018-09-18)
### Bug Fixes
* use named export for AccessControl ([d92cd37](https://github.com/EndemolShineGroup/acl/commit/d92cd37))
## [1.1.1](https://github.com/EndemolShineGroup/acl/compare/v1.1.0...v1.1.1) (2018-09-16)

@@ -2,0 +9,0 @@

4

dist/Errors/AccessControlError.d.ts

@@ -1,4 +0,4 @@

import Error from './Error';
export default class AccessControlError extends Error {
import AbstractError from './AbstractError';
export default class AccessControlError extends AbstractError {
constructor(message?: string);
}

@@ -6,4 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const Error_1 = __importDefault(require("./Error"));
class AccessControlError extends Error_1.default {
const AbstractError_1 = __importDefault(require("./AbstractError"));
class AccessControlError extends AbstractError_1.default {
constructor(message) {

@@ -10,0 +10,0 @@ const defaultMessage = `AccessControl setup incorrectly. Please set grants before usage`;

@@ -1,6 +0,6 @@

import Error from './Error';
import AbstractError from './AbstractError';
declare type ActionType = 'deny' | 'grant';
export default class PermissionNotFoundError extends Error {
export default class PermissionNotFoundError extends AbstractError {
constructor(roleName: string, permission?: string, action?: ActionType);
}
export {};

@@ -6,4 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const Error_1 = __importDefault(require("./Error"));
class PermissionNotFoundError extends Error_1.default {
const AbstractError_1 = __importDefault(require("./AbstractError"));
class PermissionNotFoundError extends AbstractError_1.default {
constructor(roleName, permission, action = 'deny') {

@@ -10,0 +10,0 @@ let message = `No permissions found for ${roleName}`;

@@ -1,4 +0,4 @@

import Error from './Error';
export default class RoleNotFoundError extends Error {
import AbstractError from './AbstractError';
export default class RoleNotFoundError extends AbstractError {
constructor(roleName: string, extraInfo?: string);
}

@@ -6,4 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const Error_1 = __importDefault(require("./Error"));
class RoleNotFoundError extends Error_1.default {
const AbstractError_1 = __importDefault(require("./AbstractError"));
class RoleNotFoundError extends AbstractError_1.default {
constructor(roleName, extraInfo) {

@@ -10,0 +10,0 @@ let message = `Role ${roleName} does not exist`;

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

export * from './AccessControl';
import ACL from './AccessControl';
export declare const AccessControl: typeof ACL;
export * from './types';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./AccessControl"));
const AccessControl_1 = __importDefault(require("./AccessControl"));
exports.AccessControl = AccessControl_1.default;
//# sourceMappingURL=index.js.map
{
"name": "@endemolshinegroup/acl",
"description": "ESG Access Control",
"version": "1.1.1",
"version": "1.1.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "dist/index.js",

@@ -1,4 +0,4 @@

import Error from './Error';
import AbstractError from './AbstractError';
export default class AccessControlError extends Error {
export default class AccessControlError extends AbstractError {
constructor(message?: string) {

@@ -5,0 +5,0 @@ const defaultMessage = `AccessControl setup incorrectly. Please set grants before usage`;

@@ -1,6 +0,6 @@

import Error from './Error';
import AbstractError from './AbstractError';
type ActionType = 'deny' | 'grant';
export default class PermissionNotFoundError extends Error {
export default class PermissionNotFoundError extends AbstractError {
constructor(

@@ -7,0 +7,0 @@ roleName: string,

@@ -1,4 +0,4 @@

import Error from './Error';
import AbstractError from './AbstractError';
export default class RoleNotFoundError extends Error {
export default class RoleNotFoundError extends AbstractError {
constructor(roleName: string, extraInfo?: string) {

@@ -5,0 +5,0 @@ let message = `Role ${roleName} does not exist`;

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

export * from './AccessControl';
import ACL from './AccessControl';
export const AccessControl = ACL;
export * from './types';

@@ -7,6 +7,3 @@ {

"lib": [
"ES2015",
"ES2016",
"ES2017",
"ES2018"
"ES2015"
],

@@ -13,0 +10,0 @@ "module": "commonjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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