stalniy/casl

View on GitHub
packages/casl-ability/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@casl/ability",
  "version": "6.7.2",
  "description": "CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access",
  "funding": "https://github.com/stalniy/casl/blob/master/BACKERS.md",
  "main": "dist/es6c/index.js",
  "module": "dist/es5m/index.js",
  "es2015": "dist/es6m/index.mjs",
  "legacy": "dist/umd/index.js",
  "typings": "./index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/types/index.d.ts",
      "import": "./dist/es6m/index.mjs",
      "require": "./dist/es6c/index.js"
    },
    "./extra": {
      "types": "./dist/types/extra/index.d.ts",
      "import": "./dist/es6m/extra/index.mjs",
      "require": "./dist/es6c/extra/index.js"
    }
  },
  "sideEffects": false,
  "repository": {
    "type": "git",
    "url": "https://github.com/stalniy/casl.git",
    "directory": "packages/casl-ability"
  },
  "homepage": "https://casl.js.org",
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "build.core": "dx rollup -n casl -g @ucast/mongo2js:ucast.mongo2js",
    "build.extra": "dx rollup -i src/extra/index.ts -n casl.extra -g @ucast/mongo2js:ucast.mongo2js",
    "build.types": "dx tsc",
    "prebuild": "rm -rf dist/*",
    "build": "npm run build.types && npm run build.core && npm run build.extra",
    "lint": "dx eslint src/ spec/",
    "test": "dx jest",
    "prerelease": "npm run lint && npm test && NODE_ENV=production npm run build",
    "release": "dx semantic-release"
  },
  "keywords": [
    "permissions",
    "authorization",
    "acl",
    "abac",
    "rbac",
    "ibac",
    "cancan"
  ],
  "author": "Sergii Stotskyi <sergiy.stotskiy@gmail.com>",
  "license": "MIT",
  "devDependencies": {
    "@casl/dx": "workspace:^1.0.0",
    "@types/jest": "^29.0.0",
    "@types/node": "^22.0.0",
    "chai": "^4.1.0",
    "chai-spies": "^1.0.0",
    "expect-type": "^0.15.0"
  },
  "files": [
    "dist",
    "*.d.ts",
    "extra"
  ],
  "dependencies": {
    "@ucast/mongo2js": "^1.3.0"
  }
}