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

@gltf-transform/functions

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gltf-transform/functions - npm Package Compare versions

Comparing version 4.0.0-alpha.9 to 4.0.0-alpha.10

8

package.json
{
"name": "@gltf-transform/functions",
"version": "4.0.0-alpha.9",
"version": "4.0.0-alpha.10",
"repository": "github:donmccurdy/glTF-Transform",

@@ -38,4 +38,4 @@ "homepage": "https://gltf-transform.dev/functions.html",

"dependencies": {
"@gltf-transform/core": "^4.0.0-alpha.9",
"@gltf-transform/extensions": "^4.0.0-alpha.9",
"@gltf-transform/core": "^4.0.0-alpha.10",
"@gltf-transform/extensions": "^4.0.0-alpha.10",
"ktx-parse": "^0.6.0",

@@ -56,3 +56,3 @@ "ndarray": "^1.0.19",

},
"gitHead": "934f1fa4fa5b92a5d851198004e0253bcaa7b71f"
"gitHead": "759bfd7276f9cdee5cacbe3b53aba96f7ed415ea"
}

@@ -1,2 +0,11 @@

import { BufferUtils, Document, ImageUtils, Texture, TextureChannel, Transform, vec2 } from '@gltf-transform/core';
import {
BufferUtils,
Document,
FileUtils,
ImageUtils,
Texture,
TextureChannel,
Transform,
vec2,
} from '@gltf-transform/core';
import { EXTTextureAVIF, EXTTextureWebP } from '@gltf-transform/extensions';

@@ -246,2 +255,3 @@ import { getTextureChannelMask } from './list-texture-channels.js';

const srcURI = texture.getURI();
const srcFormat = getFormat(texture);

@@ -268,3 +278,3 @@ const dstFormat = options.targetFormat || srcFormat;

// Overwrite, then update path and MIME type if src/dst formats differ.
const srcExtension = ImageUtils.mimeTypeToExtension(srcMimeType);
const srcExtension = srcURI ? FileUtils.extension(srcURI) : ImageUtils.mimeTypeToExtension(srcMimeType);
const dstExtension = ImageUtils.mimeTypeToExtension(dstMimeType);

@@ -271,0 +281,0 @@ const dstURI = texture.getURI().replace(new RegExp(`\\.${srcExtension}$`), `.${dstExtension}`);

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

Sorry, the diff of this file is too big to display

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