@joystick.js/test-canary 0.0.0-canary.4 → 0.0.0-canary.6

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.
@@ -1 +1 @@
1
- import a from"fs";import e from"../../lib/log";var r=async(t="",n={})=>{const s=`.joystick/build/${t?.charAt(0)==="/"?t.substring(1,t.length):t}`;if(!a.existsSync(s))return e(`[test.load] Path at ${s} not found.`,{level:"warning",docs:"https://cheatcode.co/docs/joystick/test/load"}),null;const o=await import(s);return o?.default&&n?.default?o.default:o};export{r as default};
1
+ import a from"fs";import e from"../../lib/log.js";var r=async(t="",n={})=>{const s=`.joystick/build/${t?.charAt(0)==="/"?t.substring(1,t.length):t}`;if(!a.existsSync(s))return e(`[test.load] Path at ${s} not found.`,{level:"warning",docs:"https://cheatcode.co/docs/joystick/test/load"}),null;const o=await import(s);return o?.default&&n?.default?o.default:o};export{r as default};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import o from"./test.js";import r from"./helpers/api/index.js";import m from"./helpers/component/index.js";import t from"./helpers/databases/index.js";import p from"./helpers/email/index.js";import e from"./helpers/queues/index.js";import i from"./helpers/load/index.js";import f from"./helpers/routes/index.js";import a from"./helpers/uploaders/index.js";import s from"./helpers/websockets/index.js";var x={api:r,component:m,databases:t,email:p,load:i,queues:e,routes:f,that:o.that,uploaders:a,websockets:s};export{x as default};
1
+ import"./test.js";import o from"./helpers/api/index.js";import r from"./helpers/component/index.js";import m from"./helpers/databases/index.js";import t from"./helpers/email/index.js";import p from"./helpers/queues/index.js";import e from"./helpers/load/index.js";import i from"./helpers/routes/index.js";import f from"./helpers/uploaders/index.js";import a from"./helpers/websockets/index.js";var x={api:o,component:r,databases:m,email:t,load:e,queues:p,routes:i,that,uploaders:f,websockets:a};export{x as default};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joystick.js/test-canary",
3
3
  "type": "module",
4
- "version": "0.0.0-canary.4",
4
+ "version": "0.0.0-canary.6",
5
5
  "description": "Isomorphic testing framework for the Joystick JavaScript framework.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import fs from 'fs';
2
- import log from "../../lib/log";
2
+ import log from "../../lib/log.js";
3
3
 
4
4
  export default async (path = '', options = {}) => {
5
5
  const sanitizedPath = path?.charAt(0) === '/' ? path.substring(1, path.length) : path;
package/src/index.js CHANGED
@@ -17,7 +17,7 @@ export default {
17
17
  load,
18
18
  queues,
19
19
  routes,
20
- that: test.that,
20
+ that,
21
21
  uploaders,
22
22
  websockets,
23
23
  };