@stdlib/assert-has-arraybuffer-support
Advanced tools
+18
-6
@@ -1,7 +0,19 @@ | ||
| "use strict";var f=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var u=f(function(w,i){ | ||
| var s=typeof ArrayBuffer=="function"?ArrayBuffer:null;i.exports=s | ||
| });var o=f(function(B,n){ | ||
| var y=require('@stdlib/assert-is-arraybuffer/dist'),c=require('@stdlib/array-float64/dist'),a=u();function v(){var e,r,t;if(typeof a!="function")return!1;try{t=new a(16),e=y(t)&&typeof a.isView=="function",e&&(r=new c(t),r[0]=-3.14,r[1]=NaN,e=e&&a.isView(r)&&t.byteLength===16&&r[0]===-3.14&&r[1]!==r[1])}catch(p){e=!1}return e}n.exports=v | ||
| });var l=o();module.exports=l; | ||
| /** @license Apache-2.0 */ | ||
| "use strict";var f=function(e,r){return function(){return r||e((r={exports:{}}).exports,r),r.exports}};var u=f(function(w,i){"use strict";var s=typeof ArrayBuffer=="function"?ArrayBuffer:null;i.exports=s});var o=f(function(B,n){"use strict";var y=require("@stdlib/assert-is-arraybuffer"),c=require("@stdlib/array-float64"),a=u();function v(){var e,r,t;if(typeof a!="function")return!1;try{t=new a(16),e=y(t)&&typeof a.isView=="function",e&&(r=new c(t),r[0]=-3.14,r[1]=NaN,e=e&&a.isView(r)&&t.byteLength===16&&r[0]===-3.14&&r[1]!==r[1])}catch(p){e=!1}return e}n.exports=v});var l=o();module.exports=l; | ||
| /** | ||
| * @license Apache-2.0 | ||
| * | ||
| * Copyright (c) 2018 The Stdlib Authors. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| //# sourceMappingURL=index.js.map |
+2
-2
| { | ||
| "name": "@stdlib/assert-has-arraybuffer-support", | ||
| "version": "0.2.1", | ||
| "version": "0.2.2", | ||
| "description": "Detect native ArrayBuffer support.", | ||
@@ -34,3 +34,3 @@ "license": "Apache-2.0", | ||
| "@stdlib/array-float64": "^0.2.1", | ||
| "@stdlib/assert-is-arraybuffer": "^0.2.1" | ||
| "@stdlib/assert-is-arraybuffer": "^0.2.2" | ||
| }, | ||
@@ -37,0 +37,0 @@ "devDependencies": {}, |
+2
-2
@@ -156,4 +156,4 @@ <!-- | ||
| [test-image]: https://github.com/stdlib-js/assert-has-arraybuffer-support/actions/workflows/test.yml/badge.svg?branch=v0.2.1 | ||
| [test-url]: https://github.com/stdlib-js/assert-has-arraybuffer-support/actions/workflows/test.yml?query=branch:v0.2.1 | ||
| [test-image]: https://github.com/stdlib-js/assert-has-arraybuffer-support/actions/workflows/test.yml/badge.svg?branch=v0.2.2 | ||
| [test-url]: https://github.com/stdlib-js/assert-has-arraybuffer-support/actions/workflows/test.yml?query=branch:v0.2.2 | ||
@@ -160,0 +160,0 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-has-arraybuffer-support/main.svg |
33043
1.86%170
8.28%