mirror of
https://gitlab.com/octtspacc/staticoso
synced 2025-06-05 22:09:23 +02:00
Transition to monorepo on a new Dev branch
This commit is contained in:
21
App/Source/node_modules/is-buffer/LICENSE
generated
vendored
Normal file
21
App/Source/node_modules/is-buffer/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Feross Aboukhadijeh
|
||||
|
||||
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.
|
21
App/Source/node_modules/is-buffer/index.js
generated
vendored
Normal file
21
App/Source/node_modules/is-buffer/index.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
/*!
|
||||
* Determine if an object is a Buffer
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
||||
// Object.prototype.constructor. Remove this eventually
|
||||
module.exports = function (obj) {
|
||||
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
||||
}
|
||||
|
||||
function isBuffer (obj) {
|
||||
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
||||
}
|
||||
|
||||
// For Node v0.10 support. Remove this eventually.
|
||||
function isSlowBuffer (obj) {
|
||||
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
||||
}
|
51
App/Source/node_modules/is-buffer/package.json
generated
vendored
Normal file
51
App/Source/node_modules/is-buffer/package.json
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "is-buffer",
|
||||
"description": "Determine if an object is a Buffer",
|
||||
"version": "1.1.6",
|
||||
"author": {
|
||||
"name": "Feross Aboukhadijeh",
|
||||
"email": "feross@feross.org",
|
||||
"url": "http://feross.org/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/feross/is-buffer/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"standard": "*",
|
||||
"tape": "^4.0.0",
|
||||
"zuul": "^3.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"buffer",
|
||||
"buffers",
|
||||
"type",
|
||||
"core buffer",
|
||||
"browser buffer",
|
||||
"browserify",
|
||||
"typed array",
|
||||
"uint32array",
|
||||
"int16array",
|
||||
"int32array",
|
||||
"float32array",
|
||||
"float64array",
|
||||
"browser",
|
||||
"arraybuffer",
|
||||
"dataview"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/feross/is-buffer.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && npm run test-node && npm run test-browser",
|
||||
"test-browser": "zuul -- test/*.js",
|
||||
"test-browser-local": "zuul --local -- test/*.js",
|
||||
"test-node": "tape test/*.js"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/*.js"
|
||||
}
|
||||
}
|
24
App/Source/node_modules/is-buffer/test/basic.js
generated
vendored
Normal file
24
App/Source/node_modules/is-buffer/test/basic.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
var isBuffer = require('../')
|
||||
var test = require('tape')
|
||||
|
||||
test('is-buffer', function (t) {
|
||||
t.equal(isBuffer(Buffer.alloc(4)), true, 'new Buffer(4)')
|
||||
t.equal(isBuffer(Buffer.allocUnsafeSlow(100)), true, 'SlowBuffer(100)')
|
||||
|
||||
t.equal(isBuffer(undefined), false, 'undefined')
|
||||
t.equal(isBuffer(null), false, 'null')
|
||||
t.equal(isBuffer(''), false, 'empty string')
|
||||
t.equal(isBuffer(true), false, 'true')
|
||||
t.equal(isBuffer(false), false, 'false')
|
||||
t.equal(isBuffer(0), false, '0')
|
||||
t.equal(isBuffer(1), false, '1')
|
||||
t.equal(isBuffer(1.0), false, '1.0')
|
||||
t.equal(isBuffer('string'), false, 'string')
|
||||
t.equal(isBuffer({}), false, '{}')
|
||||
t.equal(isBuffer([]), false, '[]')
|
||||
t.equal(isBuffer(function foo () {}), false, 'function foo () {}')
|
||||
t.equal(isBuffer({ isBuffer: null }), false, '{ isBuffer: null }')
|
||||
t.equal(isBuffer({ isBuffer: function () { throw new Error() } }), false, '{ isBuffer: function () { throw new Error() } }')
|
||||
|
||||
t.end()
|
||||
})
|
Reference in New Issue
Block a user