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

html-spec-tags

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-spec-tags - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

dist/all-tags.js

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

import { isRuntimeTypeOf } from '@augment-vir/common';
import { isRunTimeType } from 'run-time-assertions';
import { allHtmlSpecTagNames, isHtmlSpecTagName } from './html';

@@ -18,3 +18,3 @@ import { allSvgSpecTagNames, isSvgSpecTagName } from './svg';

}
else if (!isRuntimeTypeOf(input, 'string')) {
else if (!isRunTimeType(input, 'string')) {
throw new Error(`'${JSON.stringify(input)}' is not a string, it cannot be a valid SpecTagName.`);

@@ -21,0 +21,0 @@ }

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

import { isRuntimeTypeOf } from '@augment-vir/common';
import { isRunTimeType } from 'run-time-assertions';
/** A mapping of all HTML spec tag names to their respective element classes. */

@@ -121,3 +121,3 @@ export const htmlSpecConstructorsByTagName = {

export function isHtmlSpecTagName(input) {
return isRuntimeTypeOf(input, 'string') && input in htmlSpecConstructorsByTagName;
return isRunTimeType(input, 'string') && input in htmlSpecConstructorsByTagName;
}

@@ -129,3 +129,3 @@ /** Passes the input through if it's a valid HTML spec tag name, throws an error if not. */

}
else if (!isRuntimeTypeOf(input, 'string')) {
else if (!isRunTimeType(input, 'string')) {
throw new Error(`'${JSON.stringify(input)}' is not a string, it cannot be a valid HtmlSpecTagName.`);

@@ -132,0 +132,0 @@ }

@@ -1,2 +0,3 @@

import { isRuntimeTypeOf, typedArrayIncludes } from '@augment-vir/common';
import { typedArrayIncludes } from '@augment-vir/common';
import { isRunTimeType } from 'run-time-assertions';
/** All possible SVG spec 2 tag names within a single array. */

@@ -83,3 +84,3 @@ export const allSvgSpecTagNames = [

}
else if (!isRuntimeTypeOf(input, 'string')) {
else if (!isRunTimeType(input, 'string')) {
throw new Error(`'${JSON.stringify(input)}' is not a string, it cannot be a valid SvgSpecTagName.`);

@@ -86,0 +87,0 @@ }

{
"name": "html-spec-tags",
"version": "1.0.0",
"version": "1.0.1",
"description": "All HTML tags supported by the current spec. With types!",

@@ -40,31 +40,37 @@ "keywords": [

"dependencies": {
"@augment-vir/common": "^19.1.0"
"@augment-vir/common": "^22.0.0",
"run-time-assertions": "^0.2.1"
},
"devDependencies": {
"@augment-vir/browser-testing": "^19.1.0",
"@open-wc/testing": "^3.2.0",
"@types/mocha": "^10.0.2",
"@web/dev-server-esbuild": "^0.4.1",
"@web/test-runner": "^0.17.1",
"@web/test-runner-commands": "^0.8.0",
"@web/test-runner-playwright": "^0.10.1",
"@web/test-runner-visual-regression": "^0.8.2",
"cspell": "^7.3.7",
"esbuild": "^0.19.4",
"istanbul-smart-text-reporter": "^1.1.2",
"markdown-code-example-inserter": "^0.3.2",
"@augment-vir/browser-testing": "^22.0.0",
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.4",
"@web/dev-server-esbuild": "^1.0.1",
"@web/test-runner": "^0.18.0",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-visual-regression": "^0.9.0",
"cspell": "^8.0.0",
"dependency-cruiser": "^15.3.0",
"esbuild": "^0.19.6",
"istanbul-smart-text-reporter": "^1.1.3",
"markdown-code-example-inserter": "^0.3.3",
"npm-check-updates": "~16.12.3",
"prettier": "^2.8.8",
"prettier-plugin-interpolated-html-tags": "^0.0.4",
"prettier-plugin-jsdoc": "^0.4.2",
"prettier-plugin-multiline-arrays": "^2.0.0",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier-plugin-packagejson": "^2.4.5",
"prettier-plugin-sort-json": "^2.0.0",
"prettier-plugin-toml": "^0.3.5",
"type-fest": "^4.3.2",
"typedoc": "^0.25.1",
"prettier": "^3.1.0",
"prettier-plugin-interpolated-html-tags": "^1.0.3",
"prettier-plugin-jsdoc": "^1.1.1",
"prettier-plugin-multiline-arrays": "^3.0.1",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.6",
"prettier-plugin-sort-json": "^3.1.0",
"prettier-plugin-toml": "^1.0.0",
"type-fest": "^4.8.1",
"typedoc": "^0.25.3",
"typescript": "^5.2.2",
"virmator": "^8.0.3"
"virmator": "^11.1.2"
},
"overrides": {
"@open-wc/testing-helpers": "2.3.0",
"@open-wc/scoped-elements": "2.2.3"
}
}
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