Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nativescript-community/arraybuffers

Package Overview
Dependencies
Maintainers
19
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-community/arraybuffers - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## [1.1.4](https://github.com/nativescript-community/arraybuffers/compare/v1.1.3...v1.1.4) (2023-11-17)
**Note:** Version bump only for package @nativescript-community/arraybuffers
## [1.1.3](https://github.com/nativescript-community/arraybuffers/compare/v1.1.2...v1.1.3) (2023-08-10)

@@ -8,0 +12,0 @@

2

index.android.d.ts
import { TypedArray } from '.';
export declare function supportsDirectArrayBuffers(): any;
export declare function createNativeArray(length: any, useInts?: boolean): number[];
export declare function createNativeArray(length: any, useInts?: boolean, useBytes?: boolean): number[];
export declare function createArrayBufferOrNativeArray(length: number, useInts?: boolean, canReturnBuffer?: boolean): number[] | TypedArray;

@@ -5,0 +5,0 @@ export declare function createArrayBuffer(length: number, useInts?: boolean, canReturnBuffer?: boolean): TypedArray;

@@ -12,5 +12,5 @@ let _runtimeVersion;

}
export function createNativeArray(length, useInts = false) {
export function createNativeArray(length, useInts = false, useBytes = false) {
if (useInts) {
return Array.create('int', length);
return Array.create(useBytes ? 'byte' : 'int', length);
}

@@ -17,0 +17,0 @@ else {

export type FloatArray = Float32Array | Float64Array | Uint8Array;
export type TypedArray = FloatArray | Uint8Array;
export function createArrayBuffer(length: number, useInts?: boolean, canReturnBuffer?: boolean): TypedArray;
export function createNativeArray(length: number, useInts?: boolean): number[];
export function createNativeArray(length: number, useInts?: boolean, useBytes?: boolean): number[];
export function pointsFromBuffer(typedArray: TypedArray, useInts?: boolean, canReturnBuffer?: boolean): number[] | TypedArray;

@@ -6,0 +6,0 @@ export function arrayToNativeArray(array, useInts?: boolean, canReturnBuffer?: boolean): number[];

{
"name": "@nativescript-community/arraybuffers",
"version": "1.1.3",
"version": "1.1.4",
"description": "Utility methods to work with Array Buffers in Nativescript",

@@ -46,3 +46,3 @@ "main": "index",

"bootstrapper": "nativescript-plugin-seed",
"gitHead": "bb22bfadc200c1ae894c3791dc4ab414112c17b1"
"gitHead": "48a6cbf2a9fa4fe5888df6f79449071728c2915c"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc