@macallumharvey/first-test-wet 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export interface MacallumProps {
3
+ name: string;
4
+ }
5
+ export declare function Macallum({ name }: MacallumProps): React.JSX.Element;
@@ -2,12 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
5
+ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
- // Delete me
8
- var Thing = function Thing() {
9
- return React.createElement("div", null, "the snozzberries taste like snozzberries");
10
- };
7
+ var React = _interopDefault(require('react'));
11
8
 
12
- exports.Thing = Thing;
9
+ function Macallum(_ref) {
10
+ var name = _ref.name;
11
+ return React.createElement("div", null, "Hello, ", name, "!");
12
+ }
13
+
14
+ exports.Macallum = Macallum;
13
15
  //# sourceMappingURL=first-test-wet.cjs.development.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"first-test-wet.cjs.development.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react';\n\n// Delete me\nexport const Thing = () => {\n return <div>the snozzberries taste like snozzberries</div>;\n};\n"],"names":["Thing","React"],"mappings":";;;;;;AAEA;IACaA,KAAK,GAAG,SAARA,KAAKA;EAChB,OAAOC,4EAAmD;AAC5D;;;;"}
1
+ {"version":3,"file":"first-test-wet.cjs.development.js","sources":["../src/Macallum.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\nexport interface MacallumProps{\r\n name: string ;\r\n}\r\n\r\nexport function Macallum({name}: MacallumProps){\r\n return <div>Hello, {name}!</div> \r\n}"],"names":["Macallum","_ref","name","React"],"mappings":";;;;;;;;SAMgBA,QAAQA,CAAAC,IAAA;MAAEC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC7B,OAAOC,4CAAaD,IAAI,MAAQ;AACjC;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.Thing=function(){return e.createElement("div",null,"the snozzberries taste like snozzberries")};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;exports.Macallum=function(e){return t.createElement("div",null,"Hello, ",e.name,"!")};
2
2
  //# sourceMappingURL=first-test-wet.cjs.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"first-test-wet.cjs.production.min.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react';\n\n// Delete me\nexport const Thing = () => {\n return <div>the snozzberries taste like snozzberries</div>;\n};\n"],"names":["React"],"mappings":"yGAGqB,WACnB,OAAOA"}
1
+ {"version":3,"file":"first-test-wet.cjs.production.min.js","sources":["../src/Macallum.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\nexport interface MacallumProps{\r\n name: string ;\r\n}\r\n\r\nexport function Macallum({name}: MacallumProps){\r\n return <div>Hello, {name}!</div> \r\n}"],"names":["_ref","React","name"],"mappings":"0KAMwBA,GACvB,OAAOC,qCADsBD,EAAJE"}
@@ -1,9 +1,9 @@
1
- import { createElement } from 'react';
1
+ import React from 'react';
2
2
 
3
- // Delete me
4
- var Thing = function Thing() {
5
- return createElement("div", null, "the snozzberries taste like snozzberries");
6
- };
3
+ function Macallum(_ref) {
4
+ var name = _ref.name;
5
+ return React.createElement("div", null, "Hello, ", name, "!");
6
+ }
7
7
 
8
- export { Thing };
8
+ export { Macallum };
9
9
  //# sourceMappingURL=first-test-wet.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"first-test-wet.esm.js","sources":["../src/index.tsx"],"sourcesContent":["import * as React from 'react';\n\n// Delete me\nexport const Thing = () => {\n return <div>the snozzberries taste like snozzberries</div>;\n};\n"],"names":["Thing","React"],"mappings":";;AAEA;IACaA,KAAK,GAAG,SAARA,KAAKA;EAChB,OAAOC,sEAAmD;AAC5D;;;;"}
1
+ {"version":3,"file":"first-test-wet.esm.js","sources":["../src/Macallum.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\nexport interface MacallumProps{\r\n name: string ;\r\n}\r\n\r\nexport function Macallum({name}: MacallumProps){\r\n return <div>Hello, {name}!</div> \r\n}"],"names":["Macallum","_ref","name","React"],"mappings":";;SAMgBA,QAAQA,CAAAC,IAAA;MAAEC,IAAI,GAAAD,IAAA,CAAJC,IAAI;EAC7B,OAAOC,4CAAaD,IAAI,MAAQ;AACjC;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- import * as React from 'react';
2
- export declare const Thing: () => React.JSX.Element;
1
+ export * from './Macallum';
package/package.json CHANGED
@@ -1 +1 @@
1
- {"version":"0.1.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","files":["dist","src"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"@macallumharvey/first-test-wet","author":"Macallum Harvey","module":"dist/first-test-wet.esm.js","size-limit":[{"path":"dist/first-test-wet.cjs.production.min.js","limit":"10 KB"},{"path":"dist/first-test-wet.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^11.1.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","husky":"^9.0.11","react":"^18.3.1","react-dom":"^18.3.1","size-limit":"^11.1.4","tsdx":"^0.14.1","tslib":"^2.6.3","typescript":"^3.9.10"}}
1
+ {"version":"1.0.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","files":["dist","src"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"@macallumharvey/first-test-wet","author":"Macallum Harvey","module":"dist/first-test-wet.esm.js","size-limit":[{"path":"dist/first-test-wet.cjs.production.min.js","limit":"10 KB"},{"path":"dist/first-test-wet.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"^11.1.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","husky":"^9.0.11","react":"^18.3.1","react-dom":"^18.3.1","size-limit":"^11.1.4","tsdx":"^0.14.1","tslib":"^2.6.3","typescript":"^3.9.10"}}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+
3
+ export interface MacallumProps{
4
+ name: string ;
5
+ }
6
+
7
+ export function Macallum({name}: MacallumProps){
8
+ return <div>Hello, {name}!</div>
9
+ }
package/src/index.tsx CHANGED
@@ -1,6 +1,2 @@
1
- import * as React from 'react';
2
1
 
3
- // Delete me
4
- export const Thing = () => {
5
- return <div>the snozzberries taste like snozzberries</div>;
6
- };
2
+ export * from './Macallum'