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

@snailycad/permissions

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snailycad/permissions - npm Package Compare versions

Comparing version 1.68.7 to 1.74.0

3

./dist/index.js

@@ -27,4 +27,3 @@ 'use strict';

function hasPermission(options) {
var _a;
let userPermissions = ((_a = options.userToCheck) == null ? void 0 : _a.permissions) ?? [];
let userPermissions = options.userToCheck?.permissions ?? [];
if (!options.userToCheck)

@@ -31,0 +30,0 @@ return false;

@@ -27,4 +27,3 @@ 'use strict';

function hasPermission(options) {
var _a;
let userPermissions = ((_a = options.userToCheck) == null ? void 0 : _a.permissions) ?? [];
let userPermissions = options.userToCheck?.permissions ?? [];
if (!options.userToCheck)

@@ -31,0 +30,0 @@ return false;

@@ -30,2 +30,3 @@ declare enum Permissions {

ManageSmartSigns = "ManageSmartSigns",
ManageSmartMotorwaySigns = "ManageSmartMotorwaySigns",
EmsFd = "EmsFd",

@@ -32,0 +33,0 @@ ViewEmsFdIncidents = "ViewEmsFdIncidents",

@@ -32,2 +32,3 @@ 'use strict';

Permissions2["ManageSmartSigns"] = "ManageSmartSigns";
Permissions2["ManageSmartMotorwaySigns"] = "ManageSmartMotorwaySigns";
Permissions2["EmsFd"] = "EmsFd";

@@ -34,0 +35,0 @@ Permissions2["ViewEmsFdIncidents"] = "ViewEmsFdIncidents";

{
"name": "@snailycad/permissions",
"version": "1.68.7",
"version": "1.74.0",
"main": "./dist/index.js",

@@ -9,2 +9,3 @@ "module": "./dist/index.mjs",

".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",

@@ -14,2 +15,3 @@ "import": "./dist/index.mjs"

"./permissions": {
"types": "./dist/permissions.d.ts",
"require": "./dist/permissions.js",

@@ -27,14 +29,14 @@ "import": "./dist/permissions.mjs"

"scripts": {
"build": "yarn tsup",
"watch": "yarn tsup --watch --silent=false",
"typecheck": "yarn tsc --noEmit",
"test:watch": "yarn vitest --watch",
"test": "yarn vitest run"
"build": "pnpm tsup",
"watch": "pnpm tsup --watch --silent=false",
"typecheck": "pnpm tsc --noEmit",
"test:watch": "pnpm vitest --watch",
"test": "pnpm vitest run",
"prepublish": "pnpm build"
},
"devDependencies": {
"@vitest/coverage-v8": "^0.34.0",
"tsup": "6.6.2",
"typescript": "^5.1.6",
"vite": "^4.4.8",
"vitest": "^0.34.0"
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vitest": "^0.34.6"
},

@@ -48,3 +50,3 @@ "tsup": {

"platform": "node",
"target": "node16",
"target": "node18",
"treeshake": true,

@@ -65,3 +67,3 @@ "silent": true,

"sideEffects": false,
"gitHead": "bf6800923a2800a2fd70de430d428df347f879d8"
"gitHead": "fab926778dfc44ba319eae2f795af788bfe0f7ad"
}

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