New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

textbundle

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textbundle - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

18

dist/lib/textbundle.js

@@ -107,10 +107,12 @@ "use strict";

options.assets = [];
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
if (zip.folder(/assets/)[0]) { // textbundles with no assets may have no folder
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
}
var textFound = false;

@@ -117,0 +119,0 @@ zip.forEach(function (relativePath, zipEntry) {

@@ -105,10 +105,12 @@ // Import here Polyfills if needed. Recommended core-js (npm i -D core-js)

options.assets = [];
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
if (zip.folder(/assets/)[0]) { // textbundles with no assets may have no folder
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
}
var textFound = false;

@@ -115,0 +117,0 @@ zip.forEach(function (relativePath, zipEntry) {

@@ -110,10 +110,12 @@ (function (global, factory) {

options.assets = [];
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
if (zip.folder(/assets/)[0]) { // textbundles with no assets may have no folder
zip.folder(zip.folder(/assets/)[0].name).forEach(function (relativePath, zipEntry) {
// iterate through assets
console.debug("assets zip entry name: " + zipEntry.name);
var name = zipEntry.name.split(ASSETS_DIR + "/")[1];
promises.push(zipEntry.async('arraybuffer').then(function (data) {
options.assets.push({ name: name, data: data });
}));
});
}
var textFound = false;

@@ -120,0 +122,0 @@ zip.forEach(function (relativePath, zipEntry) {

{
"name": "textbundle",
"version": "0.4.1",
"version": "0.4.2",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [],

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