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

@teleporthq/teleport-plugin-import-statements-html

Package Overview
Dependencies
Maintainers
4
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teleporthq/teleport-plugin-import-statements-html - npm Package Compare versions

Comparing version

to
0.27.5

11

dist/cjs/index.js

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

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -108,5 +108,2 @@ if (y = 0, t) op = [op[0] & 2, t.value];

titleTag = teleport_plugin_common_1.HASTBuilders.createHTMLNode('title');
if (typeof title !== 'string') {
throw new Error('Unsupporder HTML title type. Only string is supported.');
}
teleport_plugin_common_1.HASTUtils.addTextNode(titleTag, teleport_shared_1.StringUtils.encode(title));

@@ -119,7 +116,3 @@ tags.push(titleTag);

Object.keys(meta).forEach(function (key) {
var value = meta[key];
if (typeof value !== 'string') {
throw new Error('Unsupporder HTML meta type. Only string is supported.');
}
teleport_plugin_common_1.HASTUtils.addAttributeToNode(metaTag, key, value);
teleport_plugin_common_1.HASTUtils.addAttributeToNode(metaTag, key, meta[key]);
});

@@ -126,0 +119,0 @@ tags.push(metaTag);

@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -105,5 +105,2 @@ if (y = 0, t) op = [op[0] & 2, t.value];

titleTag = HASTBuilders.createHTMLNode('title');
if (typeof title !== 'string') {
throw new Error('Unsupporder HTML title type. Only string is supported.');
}
HASTUtils.addTextNode(titleTag, StringUtils.encode(title));

@@ -116,7 +113,3 @@ tags.push(titleTag);

Object.keys(meta).forEach(function (key) {
var value = meta[key];
if (typeof value !== 'string') {
throw new Error('Unsupporder HTML meta type. Only string is supported.');
}
HASTUtils.addAttributeToNode(metaTag, key, value);
HASTUtils.addAttributeToNode(metaTag, key, meta[key]);
});

@@ -123,0 +116,0 @@ tags.push(metaTag);

10

package.json
{
"name": "@teleporthq/teleport-plugin-import-statements-html",
"version": "0.27.5-alpha.0",
"version": "0.27.5",
"description": "A plugin for handling import statements in HTML",

@@ -27,7 +27,7 @@ "author": "teleportHQ",

"dependencies": {
"@teleporthq/teleport-plugin-common": "^0.27.5-alpha.0",
"@teleporthq/teleport-shared": "^0.27.5-alpha.0",
"@teleporthq/teleport-types": "^0.27.5-alpha.0"
"@teleporthq/teleport-plugin-common": "^0.27.5",
"@teleporthq/teleport-shared": "^0.27.5",
"@teleporthq/teleport-types": "^0.27.5"
},
"gitHead": "46bbbd44f6b43dfdf9cfaf1c3428e9ee106eeecd"
"gitHead": "d8869ea13f974bb6c1613b494e8bcb2fbadc5eb7"
}

@@ -62,6 +62,2 @@ import {

const titleTag = HASTBuilders.createHTMLNode('title')
if (typeof title !== 'string') {
throw new Error('Unsupporder HTML title type. Only string is supported.')
}
HASTUtils.addTextNode(titleTag, StringUtils.encode(title))

@@ -75,8 +71,3 @@ tags.push(titleTag)

Object.keys(meta).forEach((key) => {
const value = meta[key]
if (typeof value !== 'string') {
throw new Error('Unsupporder HTML meta type. Only string is supported.')
}
HASTUtils.addAttributeToNode(metaTag, key, value)
HASTUtils.addAttributeToNode(metaTag, key, meta[key])
})

@@ -83,0 +74,0 @@ tags.push(metaTag)

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet