install @octokit/rest
This commit is contained in:
1 parent
39d9c0de99
commit
e44c6cb357
1145 files changed
+67878
-1
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0.0 (Jul 25, 2017)
|
||||
|
||||
Supports UMD, CommonJS and ES Module.
|
||||
|
||||
## 0.1.0 (Nov 28, 2015)
|
||||
|
||||
Check if ArrayBuffer is defined first.
|
||||
|
||||
## 0.0.1 (Nov 11, 2015)
|
||||
|
||||
Initial release.
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2017 Chen Fengyuan
|
||||
|
||||
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.
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
# is-array-buffer
|
||||
|
||||
> Check if the given value is an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer).
|
||||
|
||||
## Main
|
||||
|
||||
```txt
|
||||
dist/
|
||||
├── is-array-buffer.js (UMD)
|
||||
├── is-array-buffer.min.js (UMD, compressed)
|
||||
├── is-array-buffer.common.js (CommonJS, default)
|
||||
└── is-array-buffer.esm.js (ES Module)
|
||||
```
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install --save is-array-buffer
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import isArrayBuffer from 'is-array-buffer';
|
||||
|
||||
isArrayBuffer(new ArrayBuffer());
|
||||
// => true
|
||||
|
||||
isArrayBuffer(new Array());
|
||||
// => false
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](http://opensource.org/licenses/MIT) © [Chen Fengyuan](http://chenfengyuan.com)
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*!
|
||||
* isArrayBuffer v1.0.0
|
||||
* https://github.com/fengyuanchen/is-array-buffer
|
||||
*
|
||||
* Copyright (c) 2015-2017 Chen Fengyuan
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2017-07-26T11:00:44.931Z
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var hasArrayBuffer = typeof ArrayBuffer === 'function';
|
||||
var toString = Object.prototype.toString;
|
||||
|
||||
/**
|
||||
* Check if the given value is an ArrayBuffer.
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if the given is an ArrayBuffer, else `false`.
|
||||
* @example
|
||||
* isArrayBuffer(new ArrayBuffer())
|
||||
* // => true
|
||||
* isArrayBuffer(new Array())
|
||||
* // => false
|
||||
*/
|
||||
function isArrayBuffer(value) {
|
||||
return hasArrayBuffer && (value instanceof ArrayBuffer || toString.call(value) === '[object ArrayBuffer]');
|
||||
}
|
||||
|
||||
module.exports = isArrayBuffer;
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
/*!
|
||||
* isArrayBuffer v1.0.0
|
||||
* https://github.com/fengyuanchen/is-array-buffer
|
||||
*
|
||||
* Copyright (c) 2015-2017 Chen Fengyuan
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2017-07-26T11:00:44.931Z
|
||||
*/
|
||||
|
||||
var hasArrayBuffer = typeof ArrayBuffer === 'function';
|
||||
var toString = Object.prototype.toString;
|
||||
|
||||
/**
|
||||
* Check if the given value is an ArrayBuffer.
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if the given is an ArrayBuffer, else `false`.
|
||||
* @example
|
||||
* isArrayBuffer(new ArrayBuffer())
|
||||
* // => true
|
||||
* isArrayBuffer(new Array())
|
||||
* // => false
|
||||
*/
|
||||
function isArrayBuffer(value) {
|
||||
return hasArrayBuffer && (value instanceof ArrayBuffer || toString.call(value) === '[object ArrayBuffer]');
|
||||
}
|
||||
|
||||
export default isArrayBuffer;
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
/*!
|
||||
* isArrayBuffer v1.0.0
|
||||
* https://github.com/fengyuanchen/is-array-buffer
|
||||
*
|
||||
* Copyright (c) 2015-2017 Chen Fengyuan
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2017-07-26T11:00:44.931Z
|
||||
*/
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
||||
typeof define === 'function' && define.amd ? define(factory) :
|
||||
(global.isArrayBuffer = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
var hasArrayBuffer = typeof ArrayBuffer === 'function';
|
||||
var toString = Object.prototype.toString;
|
||||
|
||||
/**
|
||||
* Check if the given value is an ArrayBuffer.
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if the given is an ArrayBuffer, else `false`.
|
||||
* @example
|
||||
* isArrayBuffer(new ArrayBuffer())
|
||||
* // => true
|
||||
* isArrayBuffer(new Array())
|
||||
* // => false
|
||||
*/
|
||||
function isArrayBuffer(value) {
|
||||
return hasArrayBuffer && (value instanceof ArrayBuffer || toString.call(value) === '[object ArrayBuffer]');
|
||||
}
|
||||
|
||||
return isArrayBuffer;
|
||||
|
||||
})));
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
/*!
|
||||
* isArrayBuffer v1.0.0
|
||||
* https://github.com/fengyuanchen/is-array-buffer
|
||||
*
|
||||
* Copyright (c) 2015-2017 Chen Fengyuan
|
||||
* Released under the MIT license
|
||||
*
|
||||
* Date: 2017-07-26T11:00:44.931Z
|
||||
*/
|
||||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.isArrayBuffer=t()}(this,function(){"use strict";var e="function"==typeof ArrayBuffer,t=Object.prototype.toString;return function(f){return e&&(f instanceof ArrayBuffer||"[object ArrayBuffer]"===t.call(f))}});
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"_from": "is-array-buffer@^1.0.0",
|
||||
"_id": "is-array-buffer@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-KtzJzWuC1kZQ377GJbEsoBh0LuQh1uaZnQg8oL2LcDkY/Ny8rpAzu21Ls3oph3SEKXbnrLHt3rAUVm28iuEPfw==",
|
||||
"_location": "/is-array-buffer",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-array-buffer@^1.0.0",
|
||||
"name": "is-array-buffer",
|
||||
"escapedName": "is-array-buffer",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@octokit/rest"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-1.0.0.tgz",
|
||||
"_shasum": "f32497a0509d109423f472003f98bab6a8ea34cb",
|
||||
"_spec": "is-array-buffer@^1.0.0",
|
||||
"_where": "C:\\Users\\Luis\\source\\repos\\AAWebPlatform\\node_modules\\@octokit\\rest",
|
||||
"author": {
|
||||
"name": "Chen Fengyuan",
|
||||
"url": "http://chenfengyuan.com"
|
||||
},
|
||||
"browser": "dist/is-array-buffer.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/fengyuanchen/is-array-buffer/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Check if the given value is an ArrayBuffer.",
|
||||
"devDependencies": {
|
||||
"babel-preset-env": "^1.6.0",
|
||||
"eslint": "^4.3.0",
|
||||
"eslint-config-airbnb-base": "^11.3.1",
|
||||
"eslint-plugin-import": "^2.7.0",
|
||||
"mocha": "^3.4.2",
|
||||
"rollup": "^0.45.2",
|
||||
"rollup-plugin-babel": "^2.7.1",
|
||||
"uglify-js": "^3.0.26"
|
||||
},
|
||||
"homepage": "https://github.com/fengyuanchen/is-array-buffer",
|
||||
"keywords": [
|
||||
"is",
|
||||
"array",
|
||||
"buffer",
|
||||
"ArrayBuffer"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/is-array-buffer.common.js",
|
||||
"module": "dist/is-array-buffer.esm.js",
|
||||
"name": "is-array-buffer",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/fengyuanchen/is-array-buffer.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"compress": "uglifyjs dist/is-array-buffer.js -o dist/is-array-buffer.min.js -c -m --comments /^!/",
|
||||
"lint": "eslint src",
|
||||
"postbuild": "npm run test && npm run compress",
|
||||
"prebuild": "npm run lint",
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
const hasArrayBuffer = typeof ArrayBuffer === 'function';
|
||||
const toString = Object.prototype.toString;
|
||||
|
||||
/**
|
||||
* Check if the given value is an ArrayBuffer.
|
||||
* @param {*} value - The value to check.
|
||||
* @returns {boolean} Returns `true` if the given is an ArrayBuffer, else `false`.
|
||||
* @example
|
||||
* isArrayBuffer(new ArrayBuffer())
|
||||
* // => true
|
||||
* isArrayBuffer(new Array())
|
||||
* // => false
|
||||
*/
|
||||
export default function isArrayBuffer(value) {
|
||||
return hasArrayBuffer && (value instanceof ArrayBuffer || toString.call(value) === '[object ArrayBuffer]');
|
||||
}
|
||||
Reference in new issue
Block a user