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

jsx-dom-runtime

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom-runtime - npm Package Compare versions

Comparing version 0.14.1 to 0.14.2

10

babel-preset/index.js
const { declare } = require('@babel/helper-plugin-utils');
const createPlugin = require('@babel/plugin-transform-react-jsx/lib/create-plugin').default;
module.exports = declare((api, { useBuiltIns, useSpread }) => {
module.exports = declare((api, {
useBuiltIns,
useSpread,
nodeEnv = process.env.NODE_ENV,
}) => {
api.assertVersion(7);
const isDev = process.env.NODE_ENV === 'development';
return {

@@ -14,3 +16,3 @@ plugins: [

name: 'jsx-dom-runtime',
development: isDev,
development: nodeEnv === 'development',
}),

@@ -17,0 +19,0 @@ {

25

jsx-dev-runtime/index.js

@@ -371,5 +371,26 @@ 'use strict';

const controlsList = T.oneOf(['nodownload', 'nofullscreen', 'noremoteplayback']);
const video = {
src: T.string,
height: T.oneOfType([T.string, T.number]),
width: T.oneOfType([T.string, T.number]),
playsInline: T.bool,
poster: T.string,
// disablePictureInPicture?: boolean
// disableRemotePlayback?: boolean
autoPlay: T.bool,
autoplay: T.bool,
controls: T.bool,
controlsList: controlsList,
controlslist: controlsList,
loop: T.bool,
// muted: T.bool,
preload: T.oneOf(['none', 'metadata', 'auto'])
};
const specMap = new Map();
const defaultSpecs = Object.assign({}, element, ARIA);
const list = [['a', a, ReferrerPolicy], 'abbr', 'address', 'applet', ['area', ReferrerPolicy], 'article', 'aside', ['audio', CORS], 'b', 'base', 'basefont', 'bdi', 'bdo', 'blockquote', 'body', 'br', ['button', button], 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', ['iframe', iframe, ReferrerPolicy], ['img', img, CORS, ReferrerPolicy], ['input', input, CORS], 'ins', 'kbd', ['label', label], 'legend', 'li', ['link', CORS, ReferrerPolicy], 'main', 'map', 'mark', 'marquee', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', ['script', CORS], 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', ['textarea', textarea], 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', ['video', CORS], 'wbr'];
const defaultSpecs = { ...element,
...ARIA
};
const list = [['a', a, ReferrerPolicy], 'abbr', 'address', 'applet', ['area', ReferrerPolicy], 'article', 'aside', ['audio', CORS], 'b', 'base', 'basefont', 'bdi', 'bdo', 'blockquote', 'body', 'br', ['button', button], 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', ['iframe', iframe, ReferrerPolicy], ['img', img, CORS, ReferrerPolicy], ['input', input, CORS], 'ins', 'kbd', ['label', label], 'legend', 'li', ['link', CORS, ReferrerPolicy], 'main', 'map', 'mark', 'marquee', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', ['script', CORS], 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', ['textarea', textarea], 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', ['video', video, CORS], 'wbr'];
list.forEach(item => {

@@ -376,0 +397,0 @@ if (Array.isArray(item)) {

{
"name": "jsx-dom-runtime",
"version": "0.14.1",
"version": "0.14.2",
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM",

@@ -20,3 +20,3 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@babel/core": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/helper-plugin-utils": "^7.14.5",

@@ -27,3 +27,3 @@ "@babel/plugin-transform-react-jsx": "^7.14.5",

"devDependencies": {
"@babel/preset-env": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",

@@ -33,17 +33,17 @@ "@rollup/plugin-babel": "^5.3.0",

"@rollup/plugin-node-resolve": "^13.0.0",
"@size-limit/preset-small-lib": "^4.12.0",
"@testing-library/dom": "^7.31.2",
"@size-limit/preset-small-lib": "^5.0.1",
"@testing-library/dom": "^8.0.0",
"@testing-library/jest-dom": "^5.14.1",
"@types/testing-library__jest-dom": "^5.14.0",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"babel-jest": "^27.0.2",
"eslint": "^7.28.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"babel-jest": "^27.0.5",
"eslint": "^7.29.0",
"fs-extra": "^10.0.0",
"jest": "^27.0.4",
"rollup": "^2.51.2",
"jest": "^27.0.5",
"rollup": "^2.52.3",
"rollup-plugin-terser": "^7.0.2",
"simple-git-hooks": "^2.4.1",
"size-limit": "^4.12.0",
"typescript": "^4.3.2"
"simple-git-hooks": "^2.5.1",
"size-limit": "^5.0.1",
"typescript": "^4.3.4"
},

@@ -50,0 +50,0 @@ "files": [

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