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

edge-error

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge-error - npm Package Compare versions

Comparing version 2.0.8 to 3.0.0

build/index.d.ts

98

package.json
{
"name": "edge-error",
"version": "2.0.8",
"description": "Create errors custom stack trace pointing to the Edge source file",
"main": "build/src/index.js",
"version": "3.0.0",
"description": "Create errors with custom stack trace pointing to the .edge template file",
"main": "build/index.js",
"files": [
"build/src"
"build/index.d.ts",
"build/index.js",
"build/types.d.ts",
"build/types.js"
],
"exports": {
".": "./build/index.js",
"./types": "./build/types.js"
},
"scripts": {
"pretest": "npm run lint",
"test": "node .bin/test.js",
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"commit": "git-cz",
"clean": "del build",
"test": "npm run vscode:test",
"vscode:test": "node --require=@adonisjs/require-ts/build/register bin/test.ts",
"clean": "del-cli build",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"lint": "eslint . --ext=.ts",
"release": "np --message=\"chore(release): %s\"",
"release": "np",
"version": "npm run build",
"sync-labels": "github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json edge-js/error",
"sync-labels": "github-label-sync --labels .github/labels.js edge-js/error",
"format": "prettier --write .",

@@ -25,3 +31,3 @@ "prepublishOnly": "npm run build"

"keywords": [
"edge",
"edge-error",
"edge.js"

@@ -32,34 +38,21 @@ ],

"devDependencies": {
"@adonisjs/mrm-preset": "^5.0.3",
"@adonisjs/require-ts": "^2.0.11",
"@types/node": "^17.0.23",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^4.0.1",
"eslint": "^8.12.0",
"@adonisjs/require-ts": "^2.0.12",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@japa/assert": "^1.3.6",
"@japa/run-failed-tests": "^1.1.0",
"@japa/runner": "^2.2.1",
"@japa/spec-reporter": "^1.3.1",
"@types/node": "^18.7.18",
"del-cli": "^5.0.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-adonis": "^2.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-adonis": "^2.1.1",
"eslint-plugin-prettier": "^4.2.1",
"github-label-sync": "^2.2.0",
"husky": "^7.0.4",
"japa": "^4.0.0",
"japa-cli": "^1.0.1",
"mrm": "^4.0.0",
"np": "^7.6.1",
"prettier": "^2.6.2",
"typescript": "^4.6.3"
"husky": "^8.0.1",
"np": "^7.6.2",
"prettier": "^2.7.1",
"typescript": "^4.8.3"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"nyc": {
"exclude": [
"test"
],
"extension": [
".ts"
]
},
"directories": {

@@ -76,26 +69,11 @@ "test": "test"

"homepage": "https://github.com/edge-js/edge-error#readme",
"gitHooks": {
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"
},
"husky": {
"hooks": {
"commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"
}
},
"np": {
"contents": ".",
"message": "chore(release): %s",
"anyBranch": false
},
"mrmConfig": {
"core": false,
"license": "MIT",
"services": [
"github-actions"
],
"minNodeVersion": "14.15.4",
"probotApps": [
"stale",
"lock"
],
"runGhActionsOnWindows": false
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},

@@ -102,0 +80,0 @@ "eslintConfig": {

@@ -1,12 +0,10 @@

<div align="center"><img src="https://res.cloudinary.com/adonis-js/image/upload/v1620150474/edge-banner_tzmnox.jpg" width="600px"></div>
# edge-error
> Create errors with custom stack trace pointing to a ".edge" file
# Edge error
> Create errors custom stack trace pointing to the Edge source file
[![github-actions-image]][github-actions-url] [![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]
[![gh-workflow-image]][gh-workflow-url] [![typescript-image]][typescript-url] [![npm-image]][npm-url] [![license-image]][license-url] [![synk-image]][synk-url]
The package extends the native Error class and adds support for pushing an error stack frame pointing to a ".edge" template file.
The package extends the native Error class and adds support for pushing an error stack frame pointing to an Edge template.
## Usage
Install the package from npm registry as follows
Install the package from the npm packages registry.

@@ -23,3 +21,3 @@ ```bash

```js
const { EdgeError } = require('edge-error')
import { EdgeError } from 'edge-error'

@@ -33,15 +31,12 @@ throw new EdgeError('message', 'status', {

[gh-workflow-image]: https://img.shields.io/github/workflow/status/edge-js/error/test?style=for-the-badge
[gh-workflow-url]: https://github.com/edge-js/error/actions/workflows/test.yml "Github action"
[github-actions-image]: https://img.shields.io/github/workflow/status/edge-js/error/test?style=for-the-badge
[github-actions-url]: https://github.com/edge-js/error/actions/workflows/test.yml "github-actions"
[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/edge-error.svg?style=for-the-badge&logo=npm
[npm-url]: https://npmjs.org/package/edge-error 'npm'
[npm-url]: https://npmjs.org/package/edge-error "npm"
[license-image]: https://img.shields.io/npm/l/edge-error?color=blueviolet&style=for-the-badge
[license-url]: LICENSE.md 'license'
[license-url]: LICENSE.md "license"
[synk-image]: https://img.shields.io/snyk/vulnerabilities/github/edge-js/error?label=Synk%20Vulnerabilities&style=for-the-badge
[synk-url]: https://snyk.io/test/github/edge-js/error?targetFile=package.json "synk"
[typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
[typescript-url]: "typescript"
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