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

ono

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ono - npm Package Compare versions

Comparing version 6.0.1 to 7.0.0

index.d.ts

11

CHANGELOG.md

@@ -7,2 +7,13 @@ Change Log

[v7.0.0](https://github.com/JS-DevTools/ono/tree/v7.0.0) (2020-02-16)
----------------------------------------------------------------------------------------------------
- Moved Ono to the [@JSDevTools scope](https://www.npmjs.com/org/jsdevtools) on NPM
- The "ono" NPM package is now just a wrapper around the scoped "@jsdevtools/ono" package
[Full Changelog](https://github.com/JS-DevTools/ono/compare/v6.0.1...v7.0.0)
[v6.0.0](https://github.com/JS-DevTools/ono/tree/v6.0.0) (2019-12-28)

@@ -9,0 +20,0 @@ ----------------------------------------------------------------------------------------------------

61

package.json
{
"name": "ono",
"version": "6.0.1",
"version": "7.0.0",
"description": "Throw better errors.",

@@ -28,54 +28,13 @@ "keywords": [

},
"main": "cjs/index.js",
"module": "esm/index.js",
"typings": "esm/index.d.ts",
"browser": {
"./cjs/isomorphic.node.js": "./cjs/isomorphic.browser.js",
"./esm/isomorphic.node.js": "./esm/isomorphic.browser.js"
},
"main": "index.js",
"module": "index.mjs",
"typings": "index.d.ts",
"files": [
"cjs",
"esm"
"index.js",
"index.mjs",
"index.d.ts"
],
"scripts": {
"clean": "shx rm -rf .nyc_output coverage cjs esm",
"lint": "npm run lint:typescript && npm run lint:javascript",
"lint:typescript": "tslint -p tsconfig.json",
"lint:javascript": "eslint test ./*.js",
"build": "npm run build:cjs && npm run build:esm",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir cjs",
"test": "npm run test:node && npm run test:typescript && npm run test:browser && npm run lint",
"test:node": "mocha",
"test:browser": "karma start --single-run",
"test:typescript": "tsc --noEmit test/specs/typescript.spec.ts",
"coverage": "npm run coverage:node && npm run coverage:browser",
"coverage:node": "nyc --reporter=text --reporter=lcov --report-dir coverage/node node_modules/mocha/bin/mocha",
"coverage:browser": "npm run test:browser -- --coverage",
"upgrade": "npm-check -u && npm audit fix",
"bump": "bump --tag --push --all",
"release": "npm run upgrade && npm run clean && npm run build && npm test && npm run bump"
},
"devDependencies": {
"@babel/polyfill": "^7.7.0",
"@types/node": "^13.1.4",
"chai": "^4.2.0",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-modular": "^7.0.1",
"host-environment": "^1.1.4",
"karma": "^4.4.1",
"karma-cli": "^2.0.0",
"karma-config": "^1.5.8",
"mocha": "^7.0.0",
"npm-check": "^5.9.0",
"nyc": "^15.0.0",
"shx": "^0.3.2",
"tslint": "^5.20.1",
"tslint-modular": "^1.6.0",
"typescript": "^3.7.4",
"typescript-tslint-plugin": "^0.5.5",
"version-bump-prompt": "^5.0.7"
},
"dependencies": {}
"dependencies": {
"@jsdevtools/ono": "7.0.0"
}
}

@@ -5,10 +5,10 @@ ono (Oh No!)

[![Build Status](https://api.travis-ci.com/JS-DevTools/ono.svg?branch=master)](https://travis-ci.com/JS-DevTools/ono)
[![Build Status](https://github.com/JS-DevTools/ono/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/ono/blob/master/.github/workflows/CI-CD.yaml)
[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/ono/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/ono)
[![npm](https://img.shields.io/npm/v/ono.svg)](https://www.npmjs.com/package/ono)
[![npm](https://img.shields.io/npm/v/@jsdevtools/ono.svg)](https://www.npmjs.com/package/@jsdevtools/ono)
[![Dependencies](https://david-dm.org/JS-DevTools/ono.svg)](https://david-dm.org/JS-DevTools/ono)
[![License](https://img.shields.io/npm/l/ono.svg)](LICENSE)
[![License](https://img.shields.io/npm/l/@jsdevtools/ono.svg)](LICENSE)
[![OS and Browser Compatibility](https://jstools.dev/img/badges/ci-badges-with-ie.svg)](https://travis-ci.com/JS-DevTools/ono)
[![OS and Browser Compatibility](https://jstools.dev/img/badges/ci-badges-with-ie.svg)](https://github.com/JS-DevTools/ono/blob/master/.github/workflows/CI-CD.yaml)

@@ -29,3 +29,3 @@

- [Tested](https://travis-ci.com/JS-DevTools/ono) on Node.js and all modern web browsers on Mac, Windows, and Linux.
- Tested on Node.js and all modern web browsers on Mac, Windows, and Linux.

@@ -38,3 +38,3 @@

```javascript
const ono = require("ono");
const ono = require("@jsdevtools/ono");

@@ -60,3 +60,3 @@ // Throw an error with custom properties

// Create an Ono method for your own custom error class
const { Ono } = require("ono");
const { Ono } = require("@jsdevtools/ono");
class MyErrorClass extends Error {}

@@ -86,3 +86,3 @@ ono.myError = new Ono(MyErrorClass);

```javascript
const ono = require("ono");
const ono = require("@jsdevtools/ono");
```

@@ -93,3 +93,3 @@

```javascript
import ono from "ono";
import ono from "@jsdevtools/ono";
```

@@ -161,3 +161,3 @@

```javascript
const ono = require("ono");
const ono = require("@jsdevtools/ono");

@@ -188,3 +188,3 @@ function createArray(length) {

```javascript
const { ono, Ono } = require("ono");
const { ono, Ono } = require("@jsdevtools/ono");

@@ -259,3 +259,3 @@ // Override the default behavior for the RangeError

```javascript
const { ono, Ono } = require("ono");
const { ono, Ono } = require("@jsdevtools/ono");

@@ -293,3 +293,3 @@ // This is a simple formatter that replaces $0, $1, $2, ... with the corresponding argument

```javascript
const { ono, Ono } = require("ono");
const { ono, Ono } = require("@jsdevtools/ono");
let counter = 0;

@@ -296,0 +296,0 @@

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