@joystick.js/node-canary 0.0.0-canary.463 → 0.0.0-canary.464
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.
- package/dist/lib/dynamic_import.js +1 -1
- package/dist/lib/get_joystick_build_path.js +1 -1
- package/package.json +1 -1
- package/src/app/api/validate_input.js +0 -2
- package/src/lib/dynamic_import.js +0 -1
- package/src/lib/get_joystick_build_path.js +0 -1
- package/dist/lib/replace_file_protocol.js +0 -1
- package/src/lib/replace_file_protocol.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./get_platform_safe_path.js";const e=async(
|
|
1
|
+
import"./get_platform_safe_path.js";const e=async(t="")=>(await(process.platform==="win32"?import(`file://${t}`):import(t)))?.default;var f=e;export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"fs";const n=()=>["development","test"].includes(process.env.NODE_ENV)||e.existsSync(".joystick/build")?".joystick/build/":"",o=()=>{const t=n();return`${process.cwd().replace(t,"")}/${t}`};var s=o;export{s as default};
|
package/package.json
CHANGED
|
@@ -101,8 +101,6 @@ const add_to_validation_queue = (
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const validate_input = async (input = {}, schema = {}, parent_path = '') => {
|
|
104
|
-
// console.log(input);
|
|
105
|
-
|
|
106
104
|
const validation_errors = [];
|
|
107
105
|
const queue = add_to_validation_queue([], schema, input, parent_path);
|
|
108
106
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import get_platform_safe_path from "./get_platform_safe_path.js";
|
|
2
2
|
|
|
3
3
|
const dynamic_import = async (path = '') => {
|
|
4
|
-
console.log(process.platform === 'win32' ? `file://${path}` : path);
|
|
5
4
|
const file = await import(process.platform === 'win32' ? `file://${path}` : path);
|
|
6
5
|
return file?.default;
|
|
7
6
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import r from"os";const e=(o="")=>r.platform()==="win32"?o.replace(/[a-zA-Z]:/gi,""):o;var t=e;export{t as default};
|