aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at')
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js7
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/index.js4
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/license21
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/package.json93
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/readme.md30
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json66
-rw-r--r--deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/readme.md6
7 files changed, 43 insertions, 184 deletions
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js
index 0335117977..0432fe6a30 100644
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js
+++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js
@@ -1,6 +1,5 @@
+/* eslint-disable babel/new-cap, xo/throw-new-error */
'use strict';
-var numberIsNan = require('number-is-nan');
-
module.exports = function (str, pos) {
if (str === null || str === undefined) {
throw TypeError();
@@ -11,7 +10,7 @@ module.exports = function (str, pos) {
var size = str.length;
var i = pos ? Number(pos) : 0;
- if (numberIsNan(i)) {
+ if (Number.isNaN(i)) {
i = 0;
}
@@ -25,7 +24,7 @@ module.exports = function (str, pos) {
var second = str.charCodeAt(i + 1);
if (second >= 0xDC00 && second <= 0xDFFF) {
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
+ return ((first - 0xD800) * 0x400) + second - 0xDC00 + 0x10000;
}
}
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/index.js
deleted file mode 100644
index 79be4b9cb8..0000000000
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-'use strict';
-module.exports = Number.isNaN || function (x) {
- return x !== x;
-};
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/license b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/license
deleted file mode 100644
index 654d0bfe94..0000000000
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-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:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/package.json
deleted file mode 100644
index 018bcb3715..0000000000
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/package.json
+++ /dev/null
@@ -1,93 +0,0 @@
-{
- "_args": [
- [
- "number-is-nan@^1.0.0",
- "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at"
- ]
- ],
- "_from": "number-is-nan@>=1.0.0 <2.0.0",
- "_id": "number-is-nan@1.0.0",
- "_inCache": true,
- "_installable": true,
- "_location": "/npmlog/gauge/string-width/code-point-at/number-is-nan",
- "_nodeVersion": "0.12.3",
- "_npmUser": {
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
- },
- "_npmVersion": "2.10.0",
- "_phantomChildren": {},
- "_requested": {
- "name": "number-is-nan",
- "raw": "number-is-nan@^1.0.0",
- "rawSpec": "^1.0.0",
- "scope": null,
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "_requiredBy": [
- "/npmlog/gauge/string-width/code-point-at"
- ],
- "_resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.0.tgz",
- "_shasum": "c020f529c5282adfdd233d91d4b181c3d686dc4b",
- "_shrinkwrap": null,
- "_spec": "number-is-nan@^1.0.0",
- "_where": "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at",
- "author": {
- "email": "sindresorhus@gmail.com",
- "name": "Sindre Sorhus",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/number-is-nan/issues"
- },
- "dependencies": {},
- "description": "ES6 Number.isNaN() ponyfill",
- "devDependencies": {
- "ava": "0.0.4"
- },
- "directories": {},
- "dist": {
- "shasum": "c020f529c5282adfdd233d91d4b181c3d686dc4b",
- "tarball": "http://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.0.tgz"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "gitHead": "0f394b1bc33185c40304363b209e3f0588dbeeb3",
- "homepage": "https://github.com/sindresorhus/number-is-nan#readme",
- "keywords": [
- "es6",
- "es2015",
- "ecmascript",
- "harmony",
- "ponyfill",
- "polyfill",
- "shim",
- "number",
- "is",
- "nan",
- "not"
- ],
- "license": "MIT",
- "maintainers": [
- {
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
- }
- ],
- "name": "number-is-nan",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/number-is-nan.git"
- },
- "scripts": {
- "test": "node test.js"
- },
- "version": "1.0.0"
-}
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/readme.md b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/readme.md
deleted file mode 100644
index 93d851a14f..0000000000
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# number-is-nan [![Build Status](https://travis-ci.org/sindresorhus/number-is-nan.svg?branch=master)](https://travis-ci.org/sindresorhus/number-is-nan)
-
-> ES6 [`Number.isNaN()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN) ponyfill
-
-> Ponyfill: A polyfill that doesn't overwrite the native method
-
-
-## Install
-
-```
-$ npm install --save number-is-nan
-```
-
-
-## Usage
-
-```js
-var numberIsNan = require('number-is-nan');
-
-numberIsNan(NaN);
-//=> true
-
-numberIsNan('unicorn');
-//=> false
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json
index 4c1430d8e5..dd1f05b6a1 100644
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json
+++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json
@@ -1,57 +1,68 @@
{
"_args": [
[
- "code-point-at@^1.0.0",
- "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width"
+ {
+ "raw": "code-point-at@^1.0.0",
+ "scope": null,
+ "escapedName": "code-point-at",
+ "name": "code-point-at",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width"
]
],
"_from": "code-point-at@>=1.0.0 <2.0.0",
- "_id": "code-point-at@1.0.0",
+ "_id": "code-point-at@1.1.0",
"_inCache": true,
- "_installable": true,
"_location": "/npmlog/gauge/string-width/code-point-at",
- "_nodeVersion": "0.12.5",
+ "_nodeVersion": "4.6.1",
+ "_npmOperationalInternal": {
+ "host": "packages-12-west.internal.npmjs.com",
+ "tmp": "tmp/code-point-at-1.1.0.tgz_1478169780337_0.8445875702891499"
+ },
"_npmUser": {
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
},
- "_npmVersion": "2.11.2",
+ "_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
- "name": "code-point-at",
"raw": "code-point-at@^1.0.0",
- "rawSpec": "^1.0.0",
"scope": null,
+ "escapedName": "code-point-at",
+ "name": "code-point-at",
+ "rawSpec": "^1.0.0",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/npmlog/gauge/string-width"
],
- "_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.0.0.tgz",
- "_shasum": "f69b192d3f7d91e382e4b71bddb77878619ab0c6",
+ "_resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
+ "_shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77",
"_shrinkwrap": null,
"_spec": "code-point-at@^1.0.0",
- "_where": "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width",
+ "_where": "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width",
"author": {
- "email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/code-point-at/issues"
},
- "dependencies": {
- "number-is-nan": "^1.0.0"
- },
- "description": "ES2015 String#codePointAt() ponyfill",
+ "dependencies": {},
+ "description": "ES2015 `String#codePointAt()` ponyfill",
"devDependencies": {
- "ava": "0.0.4"
+ "ava": "*",
+ "xo": "^0.16.0"
},
"directories": {},
"dist": {
- "shasum": "f69b192d3f7d91e382e4b71bddb77878619ab0c6",
- "tarball": "http://registry.npmjs.org/code-point-at/-/code-point-at-1.0.0.tgz"
+ "shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77",
+ "tarball": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz"
},
"engines": {
"node": ">=0.10.0"
@@ -59,11 +70,10 @@
"files": [
"index.js"
],
- "gitHead": "c2ffa4064718b37c84c73a633abeeed5b486a469",
- "homepage": "https://github.com/sindresorhus/code-point-at",
+ "gitHead": "f8f21c8df2d40248fef1b36ca9076e59c0c34791",
+ "homepage": "https://github.com/sindresorhus/code-point-at#readme",
"keywords": [
"es2015",
- "es6",
"ponyfill",
"polyfill",
"shim",
@@ -78,8 +88,8 @@
"license": "MIT",
"maintainers": [
{
- "email": "sindresorhus@gmail.com",
- "name": "sindresorhus"
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
}
],
"name": "code-point-at",
@@ -90,7 +100,7 @@
"url": "git+https://github.com/sindresorhus/code-point-at.git"
},
"scripts": {
- "test": "node test.js"
+ "test": "xo && ava"
},
- "version": "1.0.0"
+ "version": "1.1.0"
}
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/readme.md b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/readme.md
index 71e7d0931b..4c97730e69 100644
--- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/readme.md
+++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/readme.md
@@ -1,8 +1,6 @@
# code-point-at [![Build Status](https://travis-ci.org/sindresorhus/code-point-at.svg?branch=master)](https://travis-ci.org/sindresorhus/code-point-at)
-> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) ponyfill
-
-> Ponyfill: A polyfill that doesn't overwrite the native method
+> ES2015 [`String#codePointAt()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) [ponyfill](https://ponyfill.com)
## Install
@@ -31,4 +29,4 @@ codePointAt('abc', 2);
## License
-MIT © [Sindre Sorhus](http://sindresorhus.com)
+MIT © [Sindre Sorhus](https://sindresorhus.com)