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

@joplin/htmlpack

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joplin/htmlpack - npm Package Compare versions

Comparing version 2.13.4 to 2.14.1

10

dist/index.js

@@ -16,4 +16,3 @@ "use strict";

const Datauri = require('datauri/sync');
const cssParse = require('css/lib/parse');
const cssStringify = require('css/lib/stringify');
const css_tools_1 = require("@adobe/css-tools");
const selfClosingElements = [

@@ -74,3 +73,3 @@ 'area',

const processCssContent = (cssBaseDir, content) => {
const o = cssParse(content, {
const o = (0, css_tools_1.parse)(content, {
silent: false,

@@ -81,2 +80,5 @@ });

for (const declaration of rule.declarations) {
if (declaration.type === css_tools_1.CssTypes.comment) {
continue;
}
if (declaration.property === 'src') {

@@ -96,3 +98,3 @@ declaration.value = declaration.value.replace(/url\((.*?)\)/g, (_v, url) => {

}
return cssStringify(o);
return (0, css_tools_1.stringify)(o);
};

@@ -99,0 +101,0 @@ const processLinkTag = (baseDir, _name, attrs) => {

12

package.json
{
"name": "@joplin/htmlpack",
"version": "2.13.4",
"version": "2.14.1",
"description": "Pack an HTML file and all its linked resources into a single HTML file",

@@ -17,12 +17,12 @@ "main": "dist/index.js",

"dependencies": {
"@joplin/fork-htmlparser2": "^4.1.50",
"css": "3.0.0",
"@adobe/css-tools": "4.3.2",
"@joplin/fork-htmlparser2": "^4.1.51",
"datauri": "4.1.0",
"fs-extra": "11.1.1",
"fs-extra": "11.2.0",
"html-entities": "1.4.0"
},
"devDependencies": {
"@types/fs-extra": "11.0.3"
"@types/fs-extra": "11.0.4"
},
"gitHead": "7c24a2f4bead520b5782cdc08635c104eedffa81"
"gitHead": "5aba5e544d2e7884fb18b447652d1f50ecc74fe7"
}

@@ -5,4 +5,3 @@ import * as fs from 'fs-extra';

const Datauri = require('datauri/sync');
const cssParse = require('css/lib/parse');
const cssStringify = require('css/lib/stringify');
import { CssTypes, parse as cssParse, stringify as cssStringify } from '@adobe/css-tools';

@@ -76,2 +75,6 @@ const selfClosingElements = [

for (const declaration of rule.declarations) {
if (declaration.type === CssTypes.comment) {
continue;
}
if (declaration.property === 'src') {

@@ -78,0 +81,0 @@ declaration.value = declaration.value.replace(/url\((.*?)\)/g, (_v: any, url: string) => {

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