-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): remove /dist from .gitignore
- Loading branch information
1 parent
49909a0
commit d4541a6
Showing
5 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
dist | ||
node_modules | ||
|
||
package-lock.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var A=Object.create;var i=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var N=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var d=e=>i(e,"__esModule",{value:!0});var S=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of N(t))!x.call(e,r)&&(n||r!=="default")&&i(e,r,{get:()=>t[r],enumerable:!(a=E(t,r))||a.enumerable});return e},D=(e,t)=>m(d(i(e!=null?A(w(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),k=(e=>(t,n)=>e&&e.get(t)||(n=m(d({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var L={};S(L,{createElement:()=>c,createFragment:()=>g,createState:()=>y});var C=(e,t,...n)=>{if(typeof e!="string"&&Array.isArray(e())){let a=new DocumentFragment;return a.append(...n),a}else{if(typeof e!="string"&&!Array.isArray(e()))return e();if(typeof e=="string"){let a=document.createElement(e);return t!==null&&Object.entries(t).forEach(([r,s])=>{if(r.startsWith("on")&&r.toLowerCase()in window&&a.addEventListener(r.toLowerCase().substring(2),s),r==="style"){let o="";for(let l in s)o+=`${l.replace(/([A-Z])/g,b=>`-${b[0].toLowerCase()}`)}: ${s[l]}; | ||
`;a.setAttribute(r,o)}else a.setAttribute(r,s.toString())}),n.forEach(r=>f(a,r)),a}else return document.createElement("div")}},f=(e,t)=>{Array.isArray(t)?t.forEach(n=>f(e,n)):typeof t=="string"?e.appendChild(document.createTextNode(t)):typeof t=="number"?e.appendChild(document.createTextNode(t.toString())):(t==null?void 0:t.nodeType)===1&&e.appendChild(t)},c=C;var v=(e,...t)=>t,g=v;var p=D(require("uniqid"),1),T=e=>{let t=typeof e,n=(0,p.default)();return[()=>{var s;if(document.getElementById(n)===null)return{key:n,value:e};{let o=(s=document.getElementById(n))==null?void 0:s.innerText;switch(t){case"boolean":o=o==="true";break;case"number":o=Number(o);break;case"object":o==="null"&&(o=null);break;case"string":o=String(o);break;default:break}return{key:n,value:o}}},s=>{let o=document.getElementById(n);if(o===null)throw new Error(`Element with id ${n} does not exist.`);o.innerText=String(s)}]},y=T;module.exports=k(L);0&&(module.exports={createElement,createFragment,createState}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
declare const createElement: (tag: string | (() => Node) | (() => Array<string | Node>), props: { | ||
[key: string]: unknown; | ||
} | null, ...children: Array<string | Node>) => Node; | ||
|
||
declare const createFragment: (props: { | ||
[key: string]: unknown; | ||
} | null, ...children: Array<string | Node>) => Array<string | Node>; | ||
|
||
declare type Data = null | number | string | boolean | Data[]; | ||
interface State { | ||
key: string; | ||
value?: Data; | ||
} | ||
declare const createState: (initialValue: Data) => [() => State, (updatedValue: Data) => void]; | ||
|
||
export { createElement, createFragment, createState }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "transform-jsx", | ||
"version": "0.3.1-beta.4", | ||
"version": "0.3.1-beta.5", | ||
"description": "Transform JSX into vanilla JavaScript", | ||
"author": "Ayushman Chhabra <[email protected]>", | ||
"license": "MIT", | ||
|