🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@adonisjs/bouncer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/bouncer - npm Package Compare versions

Comparing version

to
3.0.0-0

# The MIT License
Copyright 2021 Harminder Virk, contributors
Copyright 2022 Harminder Virk, contributors

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "@adonisjs/bouncer",
"version": "2.3.0",
"version": "3.0.0-0",
"description": "Authorization layer for AdonisJS",
"main": "build/providers/BouncerProvider.js",
"engines": {
"node": ">=18.16.0"
},
"main": "build/index.js",
"type": "module",
"files": [
"build/adonis-typings",
"build/providers",
"build/src",
"build/commands",
"build/templates"
"build",
"!build/bin",
"!build/tests"
],
"typings": "./build/adonis-typings/index.d.ts",
"exports": {
".": "./build/index.js",
"./types": "./build/src/types.js",
"./commands": "./build/commands/main.js",
"./bouncer_provider": "./build/providers/bouncer_provider.js",
"./plugins/edge": "./build/src/plugins/edge.js"
},
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"pretest": "npm run lint",
"test": "node -r ts-node/register/transpile-only bin/test.ts",
"test": "cross-env NODE_DEBUG=adonisjs:bouncer npm run quick:test",
"clean": "del-cli build",
"copyfiles": "copyfiles \"templates/**/*.txt\" build",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile && npm run copyfiles",
"typecheck": "tsc --noEmit",
"copy:templates": "copyfiles \"stubs/**/*.stub\" --up=\"1\" build",
"precompile": "npm run lint && npm run clean",
"compile": "tsup-node && tsc --emitDeclarationOnly --declaration",
"postcompile": "npm run copy:templates && npm run index:commands",
"build": "npm run compile",
"prepublishOnly": "npm run build",
"lint": "eslint . --ext=.ts",
"format": "prettier --write .",
"commit": "git-cz",
"release": "np",
"version": "npm run build",
"sync-labels": "github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json adonisjs/bouncer"
"index:commands": "adonis-kit index build/commands",
"sync-labels": "github-label-sync --labels .github/labels.json adonisjs/bouncer",
"quick:test": "c8 node --enable-source-maps --loader=ts-node/esm bin/test.ts"
},
"author": "virk,adonisjs",
"license": "MIT",
"homepage": "https://github.com/adonisjs/bouncer#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/adonisjs/bouncer.git"
},
"bugs": {
"url": "https://github.com/adonisjs/bouncer/issues"
},
"keywords": [
"authorization",
"adonisjs"
],
"devDependencies": {
"@adonisjs/auth": "^8.2.1",
"@adonisjs/core": "^5.8.2",
"@adonisjs/mrm-preset": "^5.0.3",
"@adonisjs/require-ts": "^2.0.11",
"@adonisjs/view": "^6.1.5",
"@japa/assert": "^1.3.4",
"@japa/run-failed-tests": "^1.0.7",
"@japa/runner": "^2.0.8",
"@japa/spec-reporter": "^1.1.12",
"@poppinss/dev-utils": "^2.0.3",
"@types/node": "^17.0.35",
"@adonisjs/assembler": "^6.1.3-29",
"@adonisjs/core": "^6.1.5-33",
"@adonisjs/eslint-config": "^1.2.0",
"@adonisjs/i18n": "^2.0.0-8",
"@adonisjs/prettier-config": "^1.2.0",
"@adonisjs/tsconfig": "^1.2.0",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@japa/assert": "^2.0.0-2",
"@japa/expect-type": "^2.0.0-1",
"@japa/file-system": "^2.0.1",
"@japa/runner": "^3.0.0-9",
"@japa/snapshot": "^2.0.3",
"@swc/core": "^1.3.100",
"c8": "^8.0.1",
"copyfiles": "^2.4.1",
"del-cli": "^4.0.1",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-adonis": "^2.1.0",
"eslint-plugin-prettier": "^4.0.0",
"github-label-sync": "^2.2.0",
"husky": "^8.0.1",
"mrm": "^4.0.0",
"np": "^7.6.1",
"prettier": "^2.6.2",
"ts-dedent": "^2.2.0",
"ts-node": "^10.8.0",
"typescript": "^4.6.4"
"cross-env": "^7.0.3",
"del-cli": "^5.1.0",
"edge.js": "^6.0.0",
"github-label-sync": "^2.3.1",
"husky": "^8.0.3",
"np": "^9.0.0",
"reflect-metadata": "^0.1.13",
"ts-node": "^10.9.1",
"tsup": "^8.0.1",
"typescript": "5.2.2"
},
"nyc": {
"exclude": [
"test"
],
"extension": [
".ts"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"np": {
"contents": ".",
"anyBranch": false
},
"dependencies": {
"@poppinss/utils": "^4.0.4"
"@poppinss/utils": "^6.6.0"
},
"peerDependencies": {
"@adonisjs/auth": "^8.0.0",
"@adonisjs/core": "^5.1.0",
"@adonisjs/view": "^6.0.0"
"@adonisjs/core": "^6.1.5-33",
"@adonisjs/i18n": "^2.0.0-8"
},
"peerDependenciesMeta": {
"@adonisjs/auth": {
"@adonisjs/core": {
"optional": true
},
"@adonisjs/view": {
"@adonisjs/i18n": {
"optional": true
}
},
"adonisjs": {
"templates": {
"start": [
{
"src": "bouncer.txt",
"dest": "bouncer"
}
],
"contracts": [
{
"src": "contract.txt",
"dest": "bouncer"
}
]
},
"preloads": [
"./start/bouncer"
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config",
"c8": {
"reporter": [
"text",
"html"
],
"commands": [
"@adonisjs/bouncer/build/commands"
],
"types": "@adonisjs/bouncer",
"providers": [
"@adonisjs/bouncer"
"exclude": [
"tests/**"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"publishConfig": {
"access": "public",
"tag": "latest"
"tag": "next"
},
"directories": {
"example": "examples",
"test": "test"
"np": {
"message": "chore(release): %s",
"tag": "next",
"branch": "main",
"anyBranch": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/adonisjs/bouncer.git"
},
"keywords": [
"authorization",
"adonisjs"
],
"bugs": {
"url": "https://github.com/adonisjs/bouncer/issues"
},
"homepage": "https://github.com/adonisjs/bouncer#readme"
"tsup": {
"entry": [
"./index.ts",
"./providers/bouncer_provider.ts",
"./commands/make_policy.ts",
"./src/plugins/edge.ts"
],
"outDir": "./build",
"clean": true,
"format": "esm",
"dts": false,
"sourcemap": true,
"target": "esnext"
}
}

@@ -1,53 +0,33 @@

<div align="center">
<img src="https://res.cloudinary.com/adonisjs/image/upload/q_100/v1558612869/adonis-readme_zscycu.jpg" width="600px">
</div>
# @adonisjs/bouncer
<br />
<div align="center">
<h3>Bouncer</h3>
<p>Authorization package to authorize user actions using policies</p>
</div>
[![gh-workflow-image]][gh-workflow-url] [![npm-image]][npm-url] ![][typescript-image] [![license-image]][license-url]
<br />
## Introduction
AdonisJS bouncer provides JavaScript first API to implementation authorization checks in AdonisJS applications.
<div align="center">
## Official Documentation
The documentation is available on the [AdonisJS website](https://docs.adonisjs.com/guides/authorization)
[![gh-workflow-image]][gh-workflow-url] [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url] [![synk-image]][synk-url]
## Contributing
One of the primary goals of AdonisJS is to have a vibrant community of users and contributors who believes in the principles of the framework.
</div>
We encourage you to read the [contribution guide](https://github.com/adonisjs/.github/blob/main/docs/CONTRIBUTING.md) before contributing to the framework.
<div align="center">
<h3>
<a href="https://adonisjs.com">
Website
</a>
<span> | </span>
<a href="https://docs.adonisjs.com/guides/authorization">
Guides
</a>
<span> | </span>
<a href="CONTRIBUTING.md">
Contributing
</a>
</h3>
</div>
## Code of Conduct
In order to ensure that the AdonisJS community is welcoming to all, please review and abide by the [Code of Conduct](https://github.com/adonisjs/.github/blob/main/docs/CODE_OF_CONDUCT.md).
<div align="center">
<sub>Built with ❤︎ by <a href="https://twitter.com/AmanVirk1">Harminder Virk</a>
</div>
## License
AdonisJS bouncer is open-sourced software licensed under the [MIT license](LICENSE.md).
[gh-workflow-image]: https://img.shields.io/github/workflow/status/adonisjs/bouncer/test?style=for-the-badge
[gh-workflow-url]: https://github.com/adonisjs/bouncer/actions/workflows/test.yml "Github action"
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/bouncer/checks.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/adonisjs/bouncer/actions/workflows/checks.yml "Github action"
[npm-image]: https://img.shields.io/npm/v/@adonisjs/bouncer/latest.svg?style=for-the-badge&logo=npm
[npm-url]: https://www.npmjs.com/package/@adonisjs/bouncer/v/latest "npm"
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]: "typescript"
[npm-image]: https://img.shields.io/npm/v/@adonisjs/bouncer.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/@adonisjs/bouncer "npm"
[license-image]: https://img.shields.io/npm/l/@adonisjs/bouncer?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md "license"
[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/adonisjs/bouncer?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/adonisjs/bouncer?targetFile=package.json "synk"
[license-url]: LICENSE.md
[license-image]: https://img.shields.io/github/license/adonisjs/bouncer?style=for-the-badge