@barefootjs/jsx 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1067,7 +1067,7 @@ function isArrowComponentFunction(node) {
1067
1067
  // node:path
1068
1068
  function assertPath(path) {
1069
1069
  if (typeof path !== "string")
1070
- throw new TypeError("Path must be a string. Received " + JSON.stringify(path));
1070
+ throw TypeError("Path must be a string. Received " + JSON.stringify(path));
1071
1071
  }
1072
1072
  function normalizeStringPosix(path, allowAboveRoot) {
1073
1073
  var res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, code;
@@ -1257,7 +1257,7 @@ function dirname(path) {
1257
1257
  }
1258
1258
  function basename(path, ext) {
1259
1259
  if (ext !== undefined && typeof ext !== "string")
1260
- throw new TypeError('"ext" argument must be a string');
1260
+ throw TypeError('"ext" argument must be a string');
1261
1261
  assertPath(path);
1262
1262
  var start = 0, end = -1, matchedSlash = true, i;
1263
1263
  if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {
@@ -1329,7 +1329,7 @@ function extname(path) {
1329
1329
  }
1330
1330
  function format(pathObject) {
1331
1331
  if (pathObject === null || typeof pathObject !== "object")
1332
- throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
1332
+ throw TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
1333
1333
  return _format("/", pathObject);
1334
1334
  }
1335
1335
  function parse(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barefootjs/jsx",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "JSX compiler for BarefootJS - transforms JSX to server HTML + client JS",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -49,10 +49,10 @@
49
49
  "directory": "packages/jsx"
50
50
  },
51
51
  "dependencies": {
52
- "@barefootjs/shared": "workspace:*"
52
+ "@barefootjs/shared": "0.1.2"
53
53
  },
54
54
  "peerDependencies": {
55
- "@barefootjs/client": "workspace:*",
55
+ "@barefootjs/client": "0.1.2",
56
56
  "typescript": "^5.0.0"
57
57
  },
58
58
  "devDependencies": {