install @octokit/rest

This commit is contained in:
Luis Fernando Molina committed 2018-02-25 19:00:40 +01:00
1 parent 39d9c0de99
commit e44c6cb357
1145 files changed
+67878 -1

No files matched your search

+30
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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))}});