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

@atlaspack/transformer-html

Package Overview
Dependencies
Maintainers
0
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaspack/transformer-html - npm Package Compare versions

Comparing version

to
2.12.1-canary.3450

14

package.json
{
"name": "@atlaspack/transformer-html",
"version": "2.12.1-canary.3449+741f0a6ef",
"version": "2.12.1-canary.3450+d9092cb8e",
"license": "(MIT OR Apache-2.0)",

@@ -19,8 +19,8 @@ "publishConfig": {

"node": ">= 16.0.0",
"parcel": "2.12.1-canary.3449+741f0a6ef"
"parcel": "2.12.1-canary.3450+d9092cb8e"
},
"dependencies": {
"@atlaspack/diagnostic": "2.12.1-canary.3449+741f0a6ef",
"@atlaspack/plugin": "2.12.1-canary.3449+741f0a6ef",
"@atlaspack/rust": "2.12.1-canary.3449+741f0a6ef",
"@atlaspack/diagnostic": "2.12.1-canary.3450+d9092cb8e",
"@atlaspack/plugin": "2.12.1-canary.3450+d9092cb8e",
"@atlaspack/rust": "2.12.1-canary.3450+d9092cb8e",
"nullthrows": "^1.1.1",

@@ -34,5 +34,5 @@ "posthtml": "^0.16.5",

"devDependencies": {
"@atlaspack/core": "2.12.1-canary.3449+741f0a6ef"
"@atlaspack/core": "2.12.1-canary.3450+d9092cb8e"
},
"gitHead": "741f0a6efd61aa7af5d5ca419b360c2b7127b387"
"gitHead": "d9092cb8efbaed752761ddba4d11603533e2e063"
}

@@ -116,3 +116,3 @@ // @flow

|}> = [];
PostHTML().walk.call(ast.program, node => {
PostHTML().walk.call(ast.program, (node) => {
let {tag, attrs} = node;

@@ -126,3 +126,3 @@ if (!attrs || seen.has(node)) {

if (tag === 'meta') {
const isMetaDependency = Object.keys(attrs).some(attr => {
const isMetaDependency = Object.keys(attrs).some((attr) => {
let values = META[attr];

@@ -129,0 +129,0 @@ return (

@@ -52,3 +52,3 @@ // @flow

throw new ThrowableDiagnostic({
diagnostic: errors.map(error => ({
diagnostic: errors.map((error) => ({
message: error.message,

@@ -126,3 +126,3 @@ origin: '@atlaspack/transformer-html',

for (const expression of expressions) {
PostHTML().match.call(ast.program, expression, node => {
PostHTML().match.call(ast.program, expression, (node) => {
found = node;

@@ -129,0 +129,0 @@ return node;

@@ -14,4 +14,4 @@ // @flow strict-local

.split('\n')
.map(line => line.trim())
.filter(line => line);
.map((line) => line.trim())
.filter((line) => line);
return lines.join('');

@@ -42,3 +42,3 @@ }

getAST: () => parseHTML(code, true),
setAST: n => {
setAST: (n) => {
newAST = n;

@@ -80,3 +80,3 @@ },

function normalizeDependencies(dependencies) {
return dependencies.map(dependency => ({
return dependencies.map((dependency) => ({
...dependency,

@@ -95,3 +95,3 @@ opts: {

function normalizeAssets(assets) {
return assets.map(asset => {
return assets.map((asset) => {
// $FlowFixMe

@@ -98,0 +98,0 @@ return {