Socket
Socket
Sign inDemoInstall

@loaders.gl/loader-utils

Package Overview
Dependencies
Maintainers
9
Versions
311
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/loader-utils - npm Package Compare versions

Comparing version 1.1.2 to 1.1.4

2

dist/es5/lib/binary-copy-utils.js

@@ -30,3 +30,3 @@ "use strict";

function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
var textEncoder = new TextEncoder('utf8');
var textEncoder = new TextEncoder();
var stringBuffer = textEncoder.encode(string);

@@ -33,0 +33,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);

@@ -20,3 +20,3 @@ import { padTo4Bytes } from './memory-copy-utils';

export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
const textEncoder = new TextEncoder('utf8');
const textEncoder = new TextEncoder();
const stringBuffer = textEncoder.encode(string);

@@ -23,0 +23,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);

@@ -20,3 +20,3 @@ import { padTo4Bytes } from './memory-copy-utils';

export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
var textEncoder = new TextEncoder('utf8');
var textEncoder = new TextEncoder();
var stringBuffer = textEncoder.encode(string);

@@ -23,0 +23,0 @@ byteOffset = copyPaddedArrayBufferToDataView(dataView, byteOffset, stringBuffer, padding);

{
"name": "@loaders.gl/loader-utils",
"version": "1.1.2",
"version": "1.1.4",
"description": "Framework-independent loaders for 3D graphics formats",

@@ -36,3 +36,3 @@ "license": "MIT",

},
"gitHead": "4531b976a2bf632898d13ce3690e3ac3ae31e932"
"gitHead": "7d16dd0cf37da55c105626a7189f0a2c94bea283"
}

@@ -29,3 +29,3 @@ /* global TextEncoder */

export function copyPaddedStringToDataView(dataView, byteOffset, string, padding) {
const textEncoder = new TextEncoder('utf8');
const textEncoder = new TextEncoder();
// PERFORMANCE IDEA: We encode twice, once to get size and once to store

@@ -32,0 +32,0 @@ // PERFORMANCE IDEA: Use TextEncoder.encodeInto() to avoid temporary copy

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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