Socket
Socket
Sign inDemoInstall

es-errors

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

index.d.ts

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Changelog

## [v1.1.0](https://github.com/ljharb/es-errors/compare/v1.0.0...v1.1.0) - 2024-02-04
### Commits
- [New] add base Error [`2983ab6`](https://github.com/ljharb/es-errors/commit/2983ab65f7bc5441276cb021dc3aa03c78881698)
## v1.0.0 - 2024-02-03

@@ -10,0 +16,0 @@

3

package.json
{
"name": "es-errors",
"version": "1.0.0",
"version": "1.1.0",
"description": "A simple cache for a few of the JS Error constructors.",
"main": "index.js",
"exports": {
".": "./index.js",
"./range": "./range.js",

@@ -8,0 +9,0 @@ "./syntax": "./syntax.js",

@@ -16,2 +16,4 @@ # es-errors <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

const assert = require('assert');
const Base = require('es-errors');
const Range = require('es-errors/range');

@@ -21,2 +23,3 @@ const Syntax = require('es-errors/syntax');

assert.equal(Base, Error);
assert.equal(Range, RangeError);

@@ -23,0 +26,0 @@ assert.equal(Syntax, SyntaxError);

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

var E = require('../');
var R = require('../range');

@@ -11,2 +12,3 @@ var S = require('../syntax');

test('errors', function (t) {
t.equal(E, Error);
t.equal(R, RangeError);

@@ -13,0 +15,0 @@ t.equal(S, SyntaxError);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc