@joystick.js/node-canary 0.0.0-canary.432 → 0.0.0-canary.434

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import s from"fs";import t from"./app/accounts/index.js";import i from"./action/index.js";import n from"./lib/escape_html.js";import a from"./app/fixture/index.js";import p from"./app/databases/sql.js";import c from"./app/api/validate_input.js";import m from"./app/websockets/index.js";import l from"./app/index.js";import _ from"./lib/generate_id.js";import f from"./lib/get_origin.js";import u from"./app/settings/load.js";import d from"./lib/node_path_polyfills.js";import o from"./lib/path_exists.js";import x from"./app/email/send.js";const{readFile:e}=s.promises,w={...t,deleteUser:t.delete_user,recoverPassword:t.recover_password,resetPassword:t.reset_password,sendEmailVerification:t.send_email_verification,setPassword:t.set_password,verifyEmail:t.verify_email},h=i,v={send:x},g=n,k=a,y=f(),b={continent:await o("/root/push/continent.txt")?(await e("/root/push/continent.txt","utf-8"))?.replace(`
2
- `,""):null,instance_token:await o("/root/push/instance_token.txt")?(await e("/root/push/instance_token.txt","utf-8"))?.replace(`
3
- `,""):null,current_version:await o("/root/push/versions/current")?(await e("/root/push/versions/current","utf-8"))?.replace(`
4
- `,""):null},P=u(),j=p,q=c,E=m,r={app:l,accounts:w,action:h,email:v,emitters:{},escape_html:g,fixture:k,id:_,origin:y,push:b,settings:P,sql:j,validate_input:q,websockets:E,...d};global.joystick=r;var N=r;export{w as accounts,h as action,N as default,v as email,g as escape_html,k as fixture,y as origin,b as push,P as settings,j as sql,q as validate_input,E as websockets};
1
+ import i from"fs";import t from"./app/accounts/index.js";import n from"./action/index.js";import a from"./lib/escape_html.js";import p from"./app/fixture/index.js";import m from"./app/databases/sql.js";import c from"./app/api/validate_input.js";import _ from"./app/websockets/index.js";import l from"./app/index.js";import f from"./lib/generate_id.js";import u from"./lib/get_origin.js";import d from"./app/settings/load.js";import o from"./lib/node_path_polyfills.js";import e from"./lib/path_exists.js";import x from"./app/email/send.js";const{readFile:r}=i.promises,w={...t,deleteUser:t.delete_user,recoverPassword:t.recover_password,resetPassword:t.reset_password,sendEmailVerification:t.send_email_verification,setPassword:t.set_password,verifyEmail:t.verify_email},h=n,N=o.__dirname,v={send:x},g=a,O=o.__filename,k=p,y=u(),b={continent:await e("/root/push/continent.txt")?(await r("/root/push/continent.txt","utf-8"))?.replace(`
2
+ `,""):null,instance_token:await e("/root/push/instance_token.txt")?(await r("/root/push/instance_token.txt","utf-8"))?.replace(`
3
+ `,""):null,current_version:await e("/root/push/versions/current")?(await r("/root/push/versions/current","utf-8"))?.replace(`
4
+ `,""):null},P=d(),j=m,q=c,E=_,s={app:l,accounts:w,action:h,email:v,emitters:{},escape_html:g,fixture:k,id:f,origin:y,push:b,settings:P,sql:j,validate_input:q,websockets:E,...o};global.joystick=s;var Q=s;export{N as __dirname,O as __filename,w as accounts,h as action,Q as default,v as email,g as escape_html,k as fixture,y as origin,b as push,P as settings,j as sql,q as validate_input,E as websockets};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
3
  "type": "module",
4
- "version": "0.0.0-canary.432",
4
+ "version": "0.0.0-canary.434",
5
5
  "description": "The Node.js framework for Joystick.",
6
6
  "main": "./dist/index.js",
7
7
  "scripts": {
package/src/index.js CHANGED
@@ -30,12 +30,16 @@ export const accounts = {
30
30
 
31
31
  export const action = _action;
32
32
 
33
+ export const __dirname = node_path_polyfills.__dirname;
34
+
33
35
  export const email = {
34
36
  send: send_email,
35
37
  };
36
38
 
37
39
  export const escape_html = _escape_html;
38
40
 
41
+ export const __filename = node_path_polyfills.__filename;
42
+
39
43
  export const fixture = _fixture;
40
44
 
41
45
  export const origin = get_origin();