mirror of
				https://github.com/1disk/edp445.git
				synced 2024-08-14 22:47:02 +00:00 
			
		
		
		
	Changed alot of things.
This commit is contained in:
		
							parent
							
								
									a5a0523e5a
								
							
						
					
					
						commit
						3513d5390c
					
				
					 2016 changed files with 336930 additions and 9 deletions
				
			
		
							
								
								
									
										18
									
								
								node_modules/is-typedarray/LICENSE.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								node_modules/is-typedarray/LICENSE.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| This software is released under the MIT license: | ||||
| 
 | ||||
| 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. | ||||
							
								
								
									
										16
									
								
								node_modules/is-typedarray/README.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								node_modules/is-typedarray/README.md
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| # is-typedarray [](http://github.com/badges/stability-badges) | ||||
| 
 | ||||
| Detect whether or not an object is a | ||||
| [Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays). | ||||
| 
 | ||||
| ## Usage | ||||
| 
 | ||||
| [](https://nodei.co/npm/is-typedarray/) | ||||
| 
 | ||||
| ### isTypedArray(array) | ||||
| 
 | ||||
| Returns `true` when array is a Typed Array, and `false` when it is not. | ||||
| 
 | ||||
| ## License | ||||
| 
 | ||||
| MIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details. | ||||
							
								
								
									
										41
									
								
								node_modules/is-typedarray/index.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								node_modules/is-typedarray/index.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,41 @@ | |||
| module.exports      = isTypedArray | ||||
| isTypedArray.strict = isStrictTypedArray | ||||
| isTypedArray.loose  = isLooseTypedArray | ||||
| 
 | ||||
| var toString = Object.prototype.toString | ||||
| var names = { | ||||
|     '[object Int8Array]': true | ||||
|   , '[object Int16Array]': true | ||||
|   , '[object Int32Array]': true | ||||
|   , '[object Uint8Array]': true | ||||
|   , '[object Uint8ClampedArray]': true | ||||
|   , '[object Uint16Array]': true | ||||
|   , '[object Uint32Array]': true | ||||
|   , '[object Float32Array]': true | ||||
|   , '[object Float64Array]': true | ||||
| } | ||||
| 
 | ||||
| function isTypedArray(arr) { | ||||
|   return ( | ||||
|        isStrictTypedArray(arr) | ||||
|     || isLooseTypedArray(arr) | ||||
|   ) | ||||
| } | ||||
| 
 | ||||
| function isStrictTypedArray(arr) { | ||||
|   return ( | ||||
|        arr instanceof Int8Array | ||||
|     || arr instanceof Int16Array | ||||
|     || arr instanceof Int32Array | ||||
|     || arr instanceof Uint8Array | ||||
|     || arr instanceof Uint8ClampedArray | ||||
|     || arr instanceof Uint16Array | ||||
|     || arr instanceof Uint32Array | ||||
|     || arr instanceof Float32Array | ||||
|     || arr instanceof Float64Array | ||||
|   ) | ||||
| } | ||||
| 
 | ||||
| function isLooseTypedArray(arr) { | ||||
|   return names[toString.call(arr)] | ||||
| } | ||||
							
								
								
									
										30
									
								
								node_modules/is-typedarray/package.json
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								node_modules/is-typedarray/package.json
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| { | ||||
|   "name": "is-typedarray", | ||||
|   "version": "1.0.0", | ||||
|   "description": "Detect whether or not an object is a Typed Array", | ||||
|   "main": "index.js", | ||||
|   "scripts": { | ||||
|     "test": "node test" | ||||
|   }, | ||||
|   "author": "Hugh Kennedy <hughskennedy@gmail.com> (http://hughsk.io/)", | ||||
|   "license": "MIT", | ||||
|   "dependencies": {}, | ||||
|   "devDependencies": { | ||||
|     "tape": "^2.13.1" | ||||
|   }, | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git://github.com/hughsk/is-typedarray.git" | ||||
|   }, | ||||
|   "keywords": [ | ||||
|     "typed", | ||||
|     "array", | ||||
|     "detect", | ||||
|     "is", | ||||
|     "util" | ||||
|   ], | ||||
|   "bugs": { | ||||
|     "url": "https://github.com/hughsk/is-typedarray/issues" | ||||
|   }, | ||||
|   "homepage": "https://github.com/hughsk/is-typedarray" | ||||
| } | ||||
							
								
								
									
										34
									
								
								node_modules/is-typedarray/test.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								node_modules/is-typedarray/test.js
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| var test = require('tape') | ||||
| var ista = require('./') | ||||
| 
 | ||||
| test('strict', function(t) { | ||||
|   t.ok(ista.strict(new Int8Array), 'Int8Array') | ||||
|   t.ok(ista.strict(new Int16Array), 'Int16Array') | ||||
|   t.ok(ista.strict(new Int32Array), 'Int32Array') | ||||
|   t.ok(ista.strict(new Uint8Array), 'Uint8Array') | ||||
|   t.ok(ista.strict(new Uint16Array), 'Uint16Array') | ||||
|   t.ok(ista.strict(new Uint32Array), 'Uint32Array') | ||||
|   t.ok(ista.strict(new Float32Array), 'Float32Array') | ||||
|   t.ok(ista.strict(new Float64Array), 'Float64Array') | ||||
| 
 | ||||
|   t.ok(!ista.strict(new Array), 'Array') | ||||
|   t.ok(!ista.strict([]), '[]') | ||||
| 
 | ||||
|   t.end() | ||||
| }) | ||||
| 
 | ||||
| test('loose', function(t) { | ||||
|   t.ok(ista.loose(new Int8Array), 'Int8Array') | ||||
|   t.ok(ista.loose(new Int16Array), 'Int16Array') | ||||
|   t.ok(ista.loose(new Int32Array), 'Int32Array') | ||||
|   t.ok(ista.loose(new Uint8Array), 'Uint8Array') | ||||
|   t.ok(ista.loose(new Uint16Array), 'Uint16Array') | ||||
|   t.ok(ista.loose(new Uint32Array), 'Uint32Array') | ||||
|   t.ok(ista.loose(new Float32Array), 'Float32Array') | ||||
|   t.ok(ista.loose(new Float64Array), 'Float64Array') | ||||
| 
 | ||||
|   t.ok(!ista.loose(new Array), 'Array') | ||||
|   t.ok(!ista.loose([]), '[]') | ||||
| 
 | ||||
|   t.end() | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue