New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aspecto/privacy-rules

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspecto/privacy-rules - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

12

dist/actions.js

@@ -14,4 +14,8 @@ "use strict";

return utils_1.compareStr(value, filterValue);
case 'by-regex-key':
return utils_1.checkRegEx(key, filterValue);
case 'by-regex-value':
return utils_1.checkRegEx(value, filterValue);
default:
throw new Error(`Uknown filter: ${JSON.stringify(filter)}`);
throw new Error(`Unknown filter: ${JSON.stringify(filter)}`);
}

@@ -39,3 +43,3 @@ };

default:
throw new Error(`Uknown action type: ${JSON.stringify(actionType)}`);
throw new Error(`Unknown action type: ${JSON.stringify(actionType)}`);
}

@@ -62,3 +66,3 @@ }

default:
throw new Error(`Uknown field type: ${JSON.stringify(fieldType)}`);
throw new Error(`Unknown field type: ${JSON.stringify(fieldType)}`);
}

@@ -89,5 +93,5 @@ });

default:
throw new Error(`Uknown action: ${JSON.stringify(action)}`);
throw new Error(`Unknown action: ${JSON.stringify(action)}`);
}
};
//# sourceMappingURL=actions.js.map

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

return utils_1.compareStr(valueToCheck, filter.filterValue);
case 'by-regex-value':
return utils_1.checkRegEx(valueToCheck, filter.filterValue);
default:
throw new Error(`Uknown condition filter: ${JSON.stringify(filter)}`);
throw new Error(`Unknown condition filter: ${JSON.stringify(filter)}`);
}

@@ -23,5 +25,5 @@ };

default:
throw new Error(`Uknown condition: ${JSON.stringify(condition)}`);
throw new Error(`Unknown condition: ${JSON.stringify(condition)}`);
}
};
//# sourceMappingURL=conditions.js.map

@@ -16,3 +16,3 @@ export declare type PrivacyRuleDef = {

};
export declare type ConditionFilter = FilterByValue;
export declare type ConditionFilter = FilterByValue | FilterByRegExValue;
export declare type RequestAction = {

@@ -33,3 +33,3 @@ actionType: RequestActionType;

export declare type FieldType = 'header' | 'body-json' | 'query-param';
export declare type FieldFilter = FilterByKey | FilterByValue;
export declare type FieldFilter = FilterByKey | FilterByValue | FilterByRegExKey | FilterByRegExValue;
export declare type FilterByKey = {

@@ -39,2 +39,6 @@ filterType: 'by-key';

};
export declare type FilterByRegExKey = {
filterType: 'by-regex-key';
filterValue: string;
};
export declare type FilterByValue = {

@@ -44,2 +48,6 @@ filterType: 'by-value';

};
export declare type FilterType = 'by-key' | 'by-value';
export declare type FilterByRegExValue = {
filterType: 'by-regex-value';
filterValue: string;
};
export declare type FilterType = 'by-key' | 'by-value' | 'by-regex-key' | 'by-regex-value';
export declare const compareStr: (a: any, b: any) => boolean;
export declare const checkRegEx: (value: string, regEx: string) => boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compareStr = (a, b) => String(a).toLowerCase() === String(b).toLowerCase();
exports.checkRegEx = (value, regEx) => new RegExp(regEx).test(value);
//# sourceMappingURL=utils.js.map
{
"name": "@aspecto/privacy-rules",
"version": "0.0.9",
"description": "Aspecto Privacy Rules Engine",
"main": "./dist/index.js",
"scripts": {
"build": "tsc",
"prebuild": "rm -rf ./dist",
"test": "jest",
"watch": "tsc -w",
"prepublishOnly": "yarn build",
"prettier": "prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""
"name": "@aspecto/privacy-rules",
"version": "0.0.10",
"description": "Aspecto Privacy Rules Engine",
"main": "./dist/index.js",
"scripts": {
"build": "tsc",
"prebuild": "rm -rf ./dist",
"test": "jest",
"watch": "tsc -w",
"prepublishOnly": "yarn build",
"prettier": "prettier --config .prettierrc --write \"src/**/*.{ts,js,json}\""
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/aspecto/privacy-rules.git"
},
"author": "Aspecto LTD",
"license": "ISC",
"bugs": {
"url": "https://gitlab.com/aspecto/privacy-rules/issues"
},
"homepage": "https://gitlab.com/aspecto/privacy-rules#readme",
"dependencies": {},
"devDependencies": {
"@types/jest": "^24.0.24",
"@types/node": "^12.12.14",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"eslint": "^6.7.2",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1",
"ts-jest": "^24.2.0",
"typescript": "^3.7.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js,jsx,json}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json"
}
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com/aspecto/privacy-rules.git"
},
"author": "Aspecto LTD",
"license": "ISC",
"bugs": {
"url": "https://gitlab.com/aspecto/privacy-rules/issues"
},
"homepage": "https://gitlab.com/aspecto/privacy-rules#readme",
"dependencies": {},
"devDependencies": {
"@types/jest": "^24.0.24",
"@types/node": "^12.12.14",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^2.10.0",
"eslint": "^6.7.2",
"husky": "^3.1.0",
"jest": "^24.9.0",
"lint-staged": "^9.5.0",
"prettier": "^1.19.1",
"ts-jest": "^24.2.0",
"typescript": "^3.7.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx,js,jsx,json}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.jest.json"
}
},
"testMatch": [
"**/tests/**/*.spec.+(ts|tsx|js)"
]
}
}
"testMatch": [
"**/tests/**/*.spec.+(ts|tsx|js)"
]
}
}

@@ -8,2 +8,4 @@ import { AspectoMessage } from '../src/types/AspectoMessage';

route: { path: '/users/' },
statusCode: 200,
method: 'POST',
fullUrl: 'https://auth-service.com/users/auth?Authentication=token&param1=notprivate#some/route',

@@ -10,0 +12,0 @@ body: {

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