jsx-dom-runtime
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -1,5 +0,5 @@ | ||
const { declare } = require('@babel/helper-plugin-utils'); | ||
const createPlugin = require('@babel/plugin-transform-react-jsx/lib/create-plugin').default; | ||
import { declare } from '@babel/helper-plugin-utils'; | ||
import createPlugin from '@babel/plugin-transform-react-jsx/lib/create-plugin'; | ||
module.exports = declare((api, { | ||
const index = declare((api, { | ||
useBuiltIns, | ||
@@ -29,1 +29,3 @@ useSpread, | ||
}); | ||
export { index as default }; |
@@ -1,19 +0,1 @@ | ||
let createRef = () => ({ | ||
current: null | ||
}); | ||
let parseFromString = html => { | ||
/* just the shorter tag name than the `div` */ | ||
let node = document.createElement('p'); | ||
node.innerHTML = html; | ||
return [].slice.call(node.childNodes); | ||
}; | ||
let useText = initContent => { | ||
let text = new Text(initContent); | ||
return [text, content => { | ||
text.textContent = content; | ||
}]; | ||
}; | ||
export { createRef, parseFromString, useText }; | ||
let e=()=>({current:null}),t=e=>{let t=document.createElement("p");return t.innerHTML=e,[].slice.call(t.childNodes)},n=e=>{let t=new Text(e);return[t,e=>{t.textContent=e}]};export{e as createRef,t as parseFromString,n as useText}; |
@@ -1,5 +0,1 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
let appendChildren = (node, children) => { | ||
@@ -441,3 +437,2 @@ if (Array.isArray(children)) { | ||
exports.Fragment = Fragment; | ||
exports.jsxDEV = jsxDEV; | ||
export { Fragment, jsxDEV }; |
{ | ||
"name": "jsx-dom-runtime", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.module.js", | ||
"esmodule": "dist/index.js", | ||
"source": "dist/index.js", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.js", | ||
"default": "./dist/index.js" | ||
}, | ||
"./jsx-runtime": { | ||
"require": "./jsx-runtime/index.cjs", | ||
"import": "./jsx-runtime/index.js", | ||
"default": "./jsx-runtime/index.js" | ||
}, | ||
"./jsx-dev-runtime": { | ||
"require": "./jsx-dev-runtime/index.cjs", | ||
"import": "./jsx-dev-runtime/index.js", | ||
"default": "./jsx-dev-runtime/index.js" | ||
}, | ||
"./babel-preset": { | ||
"require": "./babel-preset/index.cjs", | ||
"import": "./babel-preset/index.js", | ||
"default": "./babel-preset/index.js" | ||
}, | ||
"./package.json": "./package.json", | ||
"./": "./" | ||
}, | ||
"sideEffects": false, | ||
@@ -20,28 +42,27 @@ "scripts": { | ||
"dependencies": { | ||
"@babel/core": "^7.14.6", | ||
"@babel/core": "^7.15.5", | ||
"@babel/helper-plugin-utils": "^7.14.5", | ||
"@babel/plugin-transform-react-jsx": "^7.14.5", | ||
"csstype": "^3.0.8" | ||
"@babel/plugin-transform-react-jsx": "^7.14.9", | ||
"csstype": "^3.0.9" | ||
}, | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.14.7", | ||
"@babel/preset-typescript": "^7.14.5", | ||
"@babel/preset-env": "^7.15.6", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@size-limit/preset-small-lib": "^5.0.1", | ||
"@testing-library/dom": "^8.1.0", | ||
"@rollup/plugin-commonjs": "^20.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.5", | ||
"@size-limit/preset-small-lib": "^5.0.5", | ||
"@testing-library/dom": "^8.7.0", | ||
"@testing-library/jest-dom": "^5.14.1", | ||
"@types/testing-library__jest-dom": "^5.14.0", | ||
"@typescript-eslint/eslint-plugin": "^4.28.1", | ||
"@typescript-eslint/parser": "^4.28.1", | ||
"babel-jest": "^27.0.6", | ||
"eslint": "^7.30.0", | ||
"fs-extra": "^10.0.0", | ||
"jest": "^27.0.6", | ||
"rollup": "^2.52.7", | ||
"@types/testing-library__jest-dom": "^5.14.1", | ||
"@typescript-eslint/eslint-plugin": "^4.32.0", | ||
"@typescript-eslint/parser": "^4.32.0", | ||
"babel-jest": "^27.2.4", | ||
"eslint": "^7.32.0", | ||
"jest": "^27.2.4", | ||
"rollup": "^2.57.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"simple-git-hooks": "^2.5.1", | ||
"size-limit": "^5.0.1", | ||
"typescript": "^4.3.5" | ||
"simple-git-hooks": "^2.6.1", | ||
"size-limit": "^5.0.5", | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -64,12 +85,8 @@ "files": [ | ||
{ | ||
"path": "jsx-runtime/jsxRuntime.esm.js", | ||
"path": "jsx-runtime/index.js", | ||
"limit": "497 B" | ||
}, | ||
{ | ||
"path": "jsx-runtime/jsxRuntime.cjs.js", | ||
"limit": "478 B" | ||
}, | ||
{ | ||
"path": "jsx-runtime/jsxRuntime.module.js", | ||
"limit": "492 B" | ||
"path": "jsx-runtime/index.cjs", | ||
"limit": "480 B" | ||
} | ||
@@ -76,0 +93,0 @@ ], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37258
19
836
11
2
+ Addedcaniuse-lite@1.0.30001683(transitive)
- Removedcaniuse-lite@1.0.30001684(transitive)
Updated@babel/core@^7.15.5
Updatedcsstype@^3.0.9