@jsfsi-core/ts-nodejs 1.1.27 → 1.1.29
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.cjs +2 -2
- package/dist/index.mjs +55 -58
- package/dist/src/index.d.ts +2 -3
- package/dist/ts-nodejs/src/index.d.ts +3 -0
- package/dist/ts-nodejs/vitest.config.d.ts +2 -0
- package/package.json +3 -2
- /package/dist/{src → ts-nodejs/src}/database/TransactionalEntity.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/TransactionalRepository.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/TransactionalRepository.test.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/TransactionalRepositoryMock.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/index.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/postgres/index.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/database/postgres/search.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/env/env.loader.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/env/env.loader.unit.test.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/logger/GCPLogger.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/logger/GCPLogger.unit.test.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/logger/Logger.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/logger/MockLogger.d.ts +0 -0
- /package/dist/{src → ts-nodejs/src}/logger/index.d.ts +0 -0
- /package/dist/{vite.config.d.ts → ts-nodejs/vite.config.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("path"),W=require("url"),Q=require("fs"),H=require("os"),X=require("crypto");var U=typeof document<"u"?document.currentScript:null;function Z(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var S={exports:{}};const ee="17.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Y=require("path"),W=require("url"),Q=require("fs"),H=require("os"),X=require("crypto");var U=typeof document<"u"?document.currentScript:null;function Z(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var S={exports:{}};const ee="17.3.1",te={version:ee};var q;function re(){if(q)return S.exports;q=1;const h=Q,t=Y,n=H,c=X,N=te.version,O=["🔐 encrypt with Dotenvx: https://dotenvx.com","🔐 prevent committing .env to code: https://dotenvx.com/precommit","🔐 prevent building .env in docker: https://dotenvx.com/prebuild","🤖 agentic secret storage: https://dotenvx.com/as2","⚡️ secrets for agents: https://dotenvx.com/as2","🛡️ auth for agents: https://vestauth.com","🛠️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function I(){return O[Math.floor(Math.random()*O.length)]}function b(e){return typeof e=="string"?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}function D(){return process.stdout.isTTY}function A(e){return D()?`\x1B[2m${e}\x1B[0m`:e}const M=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function r(e){const a={};let l=e.toString();l=l.replace(/\r\n?/mg,`
|
|
2
2
|
`);let d;for(;(d=M.exec(l))!=null;){const E=d[1];let g=d[2]||"";g=g.trim();const o=g[0];g=g.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(g=g.replace(/\\n/g,`
|
|
3
|
-
`),g=g.replace(/\\r/g,"\r")),a[E]=g}return a}function u(e){e=e||{};const a=s(e);e.path=a;const l=_.configDotenv(e);if(!l.parsed){const o=new Error(`MISSING_DATA: Cannot parse ${a} for an unknown reason`);throw o.code="MISSING_DATA",o}const d=y(e).split(","),E=d.length;let g;for(let o=0;o<E;o++)try{const m=d[o].trim(),T=v(l,m);g=_.decrypt(T.ciphertext,T.key);break}catch(m){if(o+1>=E)throw m}return _.parse(g)}function p(e){console.error(`[dotenv@${N}][WARN] ${e}`)}function i(e){console.log(`[dotenv@${N}][DEBUG] ${e}`)}function f(e){console.log(`[dotenv@${N}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function v(e,a){let l;try{l=new URL(a)}catch(m){if(m.code==="ERR_INVALID_URL"){const T=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw T.code="INVALID_DOTENV_KEY",T}throw m}const d=l.password;if(!d){const m=new Error("INVALID_DOTENV_KEY: Missing key part");throw m.code="INVALID_DOTENV_KEY",m}const E=l.searchParams.get("environment");if(!E){const m=new Error("INVALID_DOTENV_KEY: Missing environment part");throw m.code="INVALID_DOTENV_KEY",m}const g=`DOTENV_VAULT_${E.toUpperCase()}`,o=e.parsed[g];if(!o){const m=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${g} in your .env.vault file.`);throw m.code="NOT_FOUND_DOTENV_ENVIRONMENT",m}return{ciphertext:o,key:d}}function s(e){let a=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const l of e.path)h.existsSync(l)&&(a=l.endsWith(".vault")?l:`${l}.vault`);else a=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else a=t.resolve(process.cwd(),".env.vault");return h.existsSync(a)?a:null}function R(e){return e[0]==="~"?t.join(n.homedir(),e.slice(1)):e}function V(e){const a=b(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),l=b(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(a||!l)&&f("Loading env from encrypted .env.vault");const d=_._parseVault(e);let E=process.env;return e&&e.processEnv!=null&&(E=e.processEnv),_.populate(E,d,e),{parsed:d}}function $(e){const a=t.resolve(process.cwd(),".env");let l="utf8",d=process.env;e&&e.processEnv!=null&&(d=e.processEnv);let E=b(d.DOTENV_CONFIG_DEBUG||e&&e.debug),g=b(d.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?l=e.encoding:E&&i("No encoding is specified. UTF-8 is used by default");let o=[a];if(e&&e.path)if(!Array.isArray(e.path))o=[R(e.path)];else{o=[];for(const L of e.path)o.push(R(L))}let m;const T={};for(const L of o)try{const x=_.parse(h.readFileSync(L,{encoding:l}));_.populate(T,x,e)}catch(x){E&&i(`Failed to load ${L} ${x.message}`),m=x}const F=_.populate(d,T,e);if(E=b(d.DOTENV_CONFIG_DEBUG||E),g=b(d.DOTENV_CONFIG_QUIET||g),E||!g){const L=Object.keys(F).length,x=[];for(const K of o)try{const C=t.relative(process.cwd(),K);x.push(C)}catch(C){E&&i(`Failed to load ${K} ${C.message}`),m=C}f(`injecting env (${L}) from ${x.join(",")} ${A(`-- tip: ${I()}`)}`)}return m?{parsed:T,error:m}:{parsed:T}}function G(e){if(y(e).length===0)return _.configDotenv(e);const a=s(e);return a?_._configVault(e):(p(`You set DOTENV_KEY but you are missing a .env.vault file at ${a}. Did you forget to build it?`),_.configDotenv(e))}function k(e,a){const l=Buffer.from(a.slice(-64),"hex");let d=Buffer.from(e,"base64");const E=d.subarray(0,12),g=d.subarray(-16);d=d.subarray(12,-16);try{const o=c.createDecipheriv("aes-256-gcm",l,E);return o.setAuthTag(g),`${o.update(d)}${o.final()}`}catch(o){const m=o instanceof RangeError,T=o.message==="Invalid key length",F=o.message==="Unsupported state or unable to authenticate data";if(m||T){const L=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw L.code="INVALID_DOTENV_KEY",L}else if(F){const L=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw L.code="DECRYPTION_FAILED",L}else throw o}}function z(e,a,l={}){const d=!!(l&&l.debug),E=!!(l&&l.override),g={};if(typeof a!="object"){const o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(const o of Object.keys(a))Object.prototype.hasOwnProperty.call(e,o)?(E===!0&&(e[o]=a[o],g[o]=a[o]),d&&i(E===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):(e[o]=a[o],g[o]=a[o]);return g}const _={configDotenv:$,_configVault:V,_parseVault:u,config:G,decrypt:k,parse:r,populate:z};return S.exports.configDotenv=_.configDotenv,S.exports._configVault=_._configVault,S.exports._parseVault=_._parseVault,S.exports.config=_.config,S.exports.decrypt=_.decrypt,S.exports.parse=_.parse,S.exports.populate=_.populate,S.exports=_,S.exports}var ne=re();const oe=W.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:U&&U.tagName.toUpperCase()==="SCRIPT"&&U.src||new URL("index.cjs",document.baseURI).href),ie=Y.dirname(oe),se=(h={})=>{const{env:t,configPath:n}=h,c=Y.resolve(ie,`${n??"."}/.env${t?`.${t}`:""}`),{parsed:w}=ne.config({path:c});return w};var j,B;function ce(){if(B)return j;B=1,j=N,N.default=N,N.stable=D,N.stableStringify=D;var h="[...]",t="[Circular]",n=[],c=[];function w(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function N(r,u,p,i){typeof i>"u"&&(i=w()),I(r,"",0,[],void 0,0,i);var f;try{c.length===0?f=JSON.stringify(r,u,p):f=JSON.stringify(r,M(u),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var y=n.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return f}function O(r,u,p,i){var f=Object.getOwnPropertyDescriptor(i,p);f.get!==void 0?f.configurable?(Object.defineProperty(i,p,{value:r}),n.push([i,p,u,f])):c.push([u,p,r]):(i[p]=r,n.push([i,p,u]))}function I(r,u,p,i,f,y,v){y+=1;var s;if(typeof r=="object"&&r!==null){for(s=0;s<i.length;s++)if(i[s]===r){O(t,r,u,f);return}if(typeof v.depthLimit<"u"&&y>v.depthLimit){O(h,r,u,f);return}if(typeof v.edgesLimit<"u"&&p+1>v.edgesLimit){O(h,r,u,f);return}if(i.push(r),Array.isArray(r))for(s=0;s<r.length;s++)I(r[s],s,s,i,r,y,v);else{var R=Object.keys(r);for(s=0;s<R.length;s++){var V=R[s];I(r[V],V,s,i,r,y,v)}}i.pop()}}function b(r,u){return r<u?-1:r>u?1:0}function D(r,u,p,i){typeof i>"u"&&(i=w());var f=A(r,"",0,[],void 0,0,i)||r,y;try{c.length===0?y=JSON.stringify(f,u,p):y=JSON.stringify(f,M(u),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var v=n.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return y}function A(r,u,p,i,f,y,v){y+=1;var s;if(typeof r=="object"&&r!==null){for(s=0;s<i.length;s++)if(i[s]===r){O(t,r,u,f);return}try{if(typeof r.toJSON=="function")return}catch{return}if(typeof v.depthLimit<"u"&&y>v.depthLimit){O(h,r,u,f);return}if(typeof v.edgesLimit<"u"&&p+1>v.edgesLimit){O(h,r,u,f);return}if(i.push(r),Array.isArray(r))for(s=0;s<r.length;s++)A(r[s],s,s,i,r,y,v);else{var R={},V=Object.keys(r).sort(b);for(s=0;s<V.length;s++){var $=V[s];A(r[$],$,s,i,r,y,v),R[$]=r[$]}if(typeof f<"u")n.push([f,u,r]),f[u]=R;else return R}i.pop()}}function M(r){return r=typeof r<"u"?r:function(u,p){return p},function(u,p){if(c.length>0)for(var i=0;i<c.length;i++){var f=c[i];if(f[1]===u&&f[0]===p){p=f[2],c.splice(i,1);break}}return r.call(this,u,p)}}return j}var ae=ce();const ue=Z(ae),J={debug:"debug",verbose:"debug",log:"log",warn:"warn",error:"error",fatal:"error"},fe={verbose:"DEFAULT",debug:"DEBUG",log:"INFO",warn:"WARNING",error:"ERROR",fatal:"CRITICAL"},le=["x-api-key","x-api-token","x-key","x-token","cookie","password","pass","psw","auth","authentication","authorization","token","access_token","client-secret","credentials","secret"];class de{constructor(t,n={}){this.module=t,n.logLevels&&(this.levels=new Set(n.logLevels))}levels=new Set(["verbose","debug","log","warn","error","fatal"]);mapLogLevelToConsoleMethod(t){return J[t]}write(t,n,c,w,N){if(!this.levels.has(t))return;const O=this.buildLog(t,n,c,w,N),I=ue(O,this.sensitiveReplacer),b=this.mapLogLevelToConsoleMethod(t);console[b](I)}buildLog(t,n,c,w,N){const{writeMetadata:O,writeContext:I,writeError:b}=this.sanitizeLog(c,w,N),D={};return typeof n=="string"&&(D.textPayload=n),!O&&typeof n!="string"&&!(n instanceof Error)&&(D.metadata=n),n instanceof Error&&(D.error=JSON.stringify(n,Object.getOwnPropertyNames(n))),I&&(D.context=I),O&&(D.metadata=O),!D.error&&b&&(D.error=JSON.stringify(b,Object.getOwnPropertyNames(b))),{severity:fe[t],module:this.module,textPayload:D.textPayload,message:D}}sanitizeLog(t,n,c){if(n instanceof Error&&(!c||typeof c=="string"))return{writeMetadata:void 0,writeContext:t||c,writeError:n};let w=n,N=t;return typeof w=="string"&&!t&&(N=w,w=void 0),{writeMetadata:w,writeContext:N,writeError:c}}sensitiveReplacer(t,n){return le.includes(t.toLowerCase())?"[HIDDEN BY LOGGER]":n}debug(t,n,c){this.write("debug",t,c,n)}verbose(t,n,c){this.write("verbose",t,c,n)}log(t,n,c){this.write("log",t,c,n)}warn(t,n,c,w){this.write("warn",t,w,n,c)}error(t,n,c,w){this.write("error",t,w,n,c)}fatal(t,n,c,w){this.write("fatal",t,w,n,c)}setLogLevels(t){this.levels=new Set(t)}}class ge{debug=()=>{};verbose=()=>{};log=()=>{};warn=()=>{};error=()=>{};fatal=()=>{};setLogLevels=()=>{}}class P{constructor(t){this.dataSource=t}em;static newInstance(t){const n=t.constructor;return new n(t.dataSource)}withEntityManager(t){return this.em=t,this}withRepositoryManager(t){return P.newInstance(this).withEntityManager(t.em)}lockInTransaction(t="pessimistic_write"){return this.em?{mode:t}:void 0}getRepository(t){return this.em?this.em.getRepository(t):this.dataSource.getRepository(t)}async withTransaction(t){let n;return await this.dataSource.transaction(async c=>{n=await t(P.newInstance(this).withEntityManager(c))}),n}}const he=h=>({...h,withTransaction:async t=>await t(h),withRepositoryManager:()=>h}),pe=(h,t)=>`unaccent(LOWER(${h})) ILIKE unaccent(LOWER(:${t}))`,ye=Object.freeze(Object.defineProperty({__proto__:null,unaccentSearch:pe},Symbol.toStringTag,{value:"Module"}));exports.GCPLogger=de;exports.LogLevelToConsoleMethodMap=J;exports.MockLogger=ge;exports.TransactionalRepository=P;exports.buildTransactionalRepositoryMock=he;exports.loadEnvConfig=se;exports.postgres=ye;
|
|
3
|
+
`),g=g.replace(/\\r/g,"\r")),a[E]=g}return a}function u(e){e=e||{};const a=s(e);e.path=a;const l=_.configDotenv(e);if(!l.parsed){const o=new Error(`MISSING_DATA: Cannot parse ${a} for an unknown reason`);throw o.code="MISSING_DATA",o}const d=y(e).split(","),E=d.length;let g;for(let o=0;o<E;o++)try{const m=d[o].trim(),T=v(l,m);g=_.decrypt(T.ciphertext,T.key);break}catch(m){if(o+1>=E)throw m}return _.parse(g)}function p(e){console.error(`[dotenv@${N}][WARN] ${e}`)}function i(e){console.log(`[dotenv@${N}][DEBUG] ${e}`)}function f(e){console.log(`[dotenv@${N}] ${e}`)}function y(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function v(e,a){let l;try{l=new URL(a)}catch(m){if(m.code==="ERR_INVALID_URL"){const T=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw T.code="INVALID_DOTENV_KEY",T}throw m}const d=l.password;if(!d){const m=new Error("INVALID_DOTENV_KEY: Missing key part");throw m.code="INVALID_DOTENV_KEY",m}const E=l.searchParams.get("environment");if(!E){const m=new Error("INVALID_DOTENV_KEY: Missing environment part");throw m.code="INVALID_DOTENV_KEY",m}const g=`DOTENV_VAULT_${E.toUpperCase()}`,o=e.parsed[g];if(!o){const m=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${g} in your .env.vault file.`);throw m.code="NOT_FOUND_DOTENV_ENVIRONMENT",m}return{ciphertext:o,key:d}}function s(e){let a=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(const l of e.path)h.existsSync(l)&&(a=l.endsWith(".vault")?l:`${l}.vault`);else a=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else a=t.resolve(process.cwd(),".env.vault");return h.existsSync(a)?a:null}function R(e){return e[0]==="~"?t.join(n.homedir(),e.slice(1)):e}function V(e){const a=b(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),l=b(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(a||!l)&&f("Loading env from encrypted .env.vault");const d=_._parseVault(e);let E=process.env;return e&&e.processEnv!=null&&(E=e.processEnv),_.populate(E,d,e),{parsed:d}}function x(e){const a=t.resolve(process.cwd(),".env");let l="utf8",d=process.env;e&&e.processEnv!=null&&(d=e.processEnv);let E=b(d.DOTENV_CONFIG_DEBUG||e&&e.debug),g=b(d.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?l=e.encoding:E&&i("No encoding is specified. UTF-8 is used by default");let o=[a];if(e&&e.path)if(!Array.isArray(e.path))o=[R(e.path)];else{o=[];for(const L of e.path)o.push(R(L))}let m;const T={};for(const L of o)try{const $=_.parse(h.readFileSync(L,{encoding:l}));_.populate(T,$,e)}catch($){E&&i(`Failed to load ${L} ${$.message}`),m=$}const F=_.populate(d,T,e);if(E=b(d.DOTENV_CONFIG_DEBUG||E),g=b(d.DOTENV_CONFIG_QUIET||g),E||!g){const L=Object.keys(F).length,$=[];for(const K of o)try{const C=t.relative(process.cwd(),K);$.push(C)}catch(C){E&&i(`Failed to load ${K} ${C.message}`),m=C}f(`injecting env (${L}) from ${$.join(",")} ${A(`-- tip: ${I()}`)}`)}return m?{parsed:T,error:m}:{parsed:T}}function G(e){if(y(e).length===0)return _.configDotenv(e);const a=s(e);return a?_._configVault(e):(p(`You set DOTENV_KEY but you are missing a .env.vault file at ${a}. Did you forget to build it?`),_.configDotenv(e))}function k(e,a){const l=Buffer.from(a.slice(-64),"hex");let d=Buffer.from(e,"base64");const E=d.subarray(0,12),g=d.subarray(-16);d=d.subarray(12,-16);try{const o=c.createDecipheriv("aes-256-gcm",l,E);return o.setAuthTag(g),`${o.update(d)}${o.final()}`}catch(o){const m=o instanceof RangeError,T=o.message==="Invalid key length",F=o.message==="Unsupported state or unable to authenticate data";if(m||T){const L=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw L.code="INVALID_DOTENV_KEY",L}else if(F){const L=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw L.code="DECRYPTION_FAILED",L}else throw o}}function z(e,a,l={}){const d=!!(l&&l.debug),E=!!(l&&l.override),g={};if(typeof a!="object"){const o=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw o.code="OBJECT_REQUIRED",o}for(const o of Object.keys(a))Object.prototype.hasOwnProperty.call(e,o)?(E===!0&&(e[o]=a[o],g[o]=a[o]),d&&i(E===!0?`"${o}" is already defined and WAS overwritten`:`"${o}" is already defined and was NOT overwritten`)):(e[o]=a[o],g[o]=a[o]);return g}const _={configDotenv:x,_configVault:V,_parseVault:u,config:G,decrypt:k,parse:r,populate:z};return S.exports.configDotenv=_.configDotenv,S.exports._configVault=_._configVault,S.exports._parseVault=_._parseVault,S.exports.config=_.config,S.exports.decrypt=_.decrypt,S.exports.parse=_.parse,S.exports.populate=_.populate,S.exports=_,S.exports}var ne=re();const oe=W.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:U&&U.tagName.toUpperCase()==="SCRIPT"&&U.src||new URL("index.cjs",document.baseURI).href),ie=Y.dirname(oe),se=(h={})=>{const{env:t,configPath:n}=h,c=Y.resolve(ie,`${n??"."}/.env${t?`.${t}`:""}`),{parsed:w}=ne.config({path:c});return w};var j,B;function ce(){if(B)return j;B=1,j=N,N.default=N,N.stable=D,N.stableStringify=D;var h="[...]",t="[Circular]",n=[],c=[];function w(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function N(r,u,p,i){typeof i>"u"&&(i=w()),I(r,"",0,[],void 0,0,i);var f;try{c.length===0?f=JSON.stringify(r,u,p):f=JSON.stringify(r,M(u),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var y=n.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return f}function O(r,u,p,i){var f=Object.getOwnPropertyDescriptor(i,p);f.get!==void 0?f.configurable?(Object.defineProperty(i,p,{value:r}),n.push([i,p,u,f])):c.push([u,p,r]):(i[p]=r,n.push([i,p,u]))}function I(r,u,p,i,f,y,v){y+=1;var s;if(typeof r=="object"&&r!==null){for(s=0;s<i.length;s++)if(i[s]===r){O(t,r,u,f);return}if(typeof v.depthLimit<"u"&&y>v.depthLimit){O(h,r,u,f);return}if(typeof v.edgesLimit<"u"&&p+1>v.edgesLimit){O(h,r,u,f);return}if(i.push(r),Array.isArray(r))for(s=0;s<r.length;s++)I(r[s],s,s,i,r,y,v);else{var R=Object.keys(r);for(s=0;s<R.length;s++){var V=R[s];I(r[V],V,s,i,r,y,v)}}i.pop()}}function b(r,u){return r<u?-1:r>u?1:0}function D(r,u,p,i){typeof i>"u"&&(i=w());var f=A(r,"",0,[],void 0,0,i)||r,y;try{c.length===0?y=JSON.stringify(f,u,p):y=JSON.stringify(f,M(u),p)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var v=n.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return y}function A(r,u,p,i,f,y,v){y+=1;var s;if(typeof r=="object"&&r!==null){for(s=0;s<i.length;s++)if(i[s]===r){O(t,r,u,f);return}try{if(typeof r.toJSON=="function")return}catch{return}if(typeof v.depthLimit<"u"&&y>v.depthLimit){O(h,r,u,f);return}if(typeof v.edgesLimit<"u"&&p+1>v.edgesLimit){O(h,r,u,f);return}if(i.push(r),Array.isArray(r))for(s=0;s<r.length;s++)A(r[s],s,s,i,r,y,v);else{var R={},V=Object.keys(r).sort(b);for(s=0;s<V.length;s++){var x=V[s];A(r[x],x,s,i,r,y,v),R[x]=r[x]}if(typeof f<"u")n.push([f,u,r]),f[u]=R;else return R}i.pop()}}function M(r){return r=typeof r<"u"?r:function(u,p){return p},function(u,p){if(c.length>0)for(var i=0;i<c.length;i++){var f=c[i];if(f[1]===u&&f[0]===p){p=f[2],c.splice(i,1);break}}return r.call(this,u,p)}}return j}var ae=ce();const ue=Z(ae),J={debug:"debug",verbose:"debug",log:"log",warn:"warn",error:"error",fatal:"error"},fe={verbose:"DEFAULT",debug:"DEBUG",log:"INFO",warn:"WARNING",error:"ERROR",fatal:"CRITICAL"},le=["x-api-key","x-api-token","x-key","x-token","cookie","password","pass","psw","auth","authentication","authorization","token","access_token","client-secret","credentials","secret"];class de{constructor(t,n={}){this.module=t,n.logLevels&&(this.levels=new Set(n.logLevels))}levels=new Set(["verbose","debug","log","warn","error","fatal"]);mapLogLevelToConsoleMethod(t){return J[t]}write(t,n,c,w,N){if(!this.levels.has(t))return;const O=this.buildLog(t,n,c,w,N),I=ue(O,this.sensitiveReplacer),b=this.mapLogLevelToConsoleMethod(t);console[b](I)}buildLog(t,n,c,w,N){const{writeMetadata:O,writeContext:I,writeError:b}=this.sanitizeLog(c,w,N),D={};return typeof n=="string"&&(D.textPayload=n),!O&&typeof n!="string"&&!(n instanceof Error)&&(D.metadata=n),n instanceof Error&&(D.error=JSON.stringify(n,Object.getOwnPropertyNames(n))),I&&(D.context=I),O&&(D.metadata=O),!D.error&&b&&(D.error=JSON.stringify(b,Object.getOwnPropertyNames(b))),{severity:fe[t],module:this.module,textPayload:D.textPayload,message:D}}sanitizeLog(t,n,c){if(n instanceof Error&&(!c||typeof c=="string"))return{writeMetadata:void 0,writeContext:t||c,writeError:n};let w=n,N=t;return typeof w=="string"&&!t&&(N=w,w=void 0),{writeMetadata:w,writeContext:N,writeError:c}}sensitiveReplacer(t,n){return le.includes(t.toLowerCase())?"[HIDDEN BY LOGGER]":n}debug(t,n,c){this.write("debug",t,c,n)}verbose(t,n,c){this.write("verbose",t,c,n)}log(t,n,c){this.write("log",t,c,n)}warn(t,n,c,w){this.write("warn",t,w,n,c)}error(t,n,c,w){this.write("error",t,w,n,c)}fatal(t,n,c,w){this.write("fatal",t,w,n,c)}setLogLevels(t){this.levels=new Set(t)}}class ge{debug=()=>{};verbose=()=>{};log=()=>{};warn=()=>{};error=()=>{};fatal=()=>{};setLogLevels=()=>{}}class P{constructor(t){this.dataSource=t}em;static newInstance(t){const n=t.constructor;return new n(t.dataSource)}withEntityManager(t){return this.em=t,this}withRepositoryManager(t){return P.newInstance(this).withEntityManager(t.em)}lockInTransaction(t="pessimistic_write"){return this.em?{mode:t}:void 0}getRepository(t){return this.em?this.em.getRepository(t):this.dataSource.getRepository(t)}async withTransaction(t){let n;return await this.dataSource.transaction(async c=>{n=await t(P.newInstance(this).withEntityManager(c))}),n}}const he=h=>({...h,withTransaction:async t=>await t(h),withRepositoryManager:()=>h}),pe=(h,t)=>`unaccent(LOWER(${h})) ILIKE unaccent(LOWER(:${t}))`,ye=Object.freeze(Object.defineProperty({__proto__:null,unaccentSearch:pe},Symbol.toStringTag,{value:"Module"}));exports.GCPLogger=de;exports.LogLevelToConsoleMethodMap=J;exports.MockLogger=ge;exports.TransactionalRepository=P;exports.buildTransactionalRepositoryMock=he;exports.loadEnvConfig=se;exports.postgres=ye;
|
package/dist/index.mjs
CHANGED
|
@@ -3,27 +3,24 @@ import { fileURLToPath as k } from "url";
|
|
|
3
3
|
import z from "fs";
|
|
4
4
|
import W from "os";
|
|
5
5
|
import Q from "crypto";
|
|
6
|
-
function H(
|
|
7
|
-
return
|
|
6
|
+
function H(h) {
|
|
7
|
+
return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
|
|
8
8
|
}
|
|
9
9
|
var S = { exports: {} };
|
|
10
|
-
const X = "17.
|
|
10
|
+
const X = "17.3.1", Z = {
|
|
11
11
|
version: X
|
|
12
12
|
};
|
|
13
13
|
var G;
|
|
14
14
|
function ee() {
|
|
15
15
|
if (G) return S.exports;
|
|
16
16
|
G = 1;
|
|
17
|
-
const
|
|
17
|
+
const h = z, t = j, n = W, c = Q, N = Z.version, O = [
|
|
18
18
|
"🔐 encrypt with Dotenvx: https://dotenvx.com",
|
|
19
19
|
"🔐 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
20
20
|
"🔐 prevent building .env in docker: https://dotenvx.com/prebuild",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"✅ audit secrets and track compliance: https://dotenvx.com/ops",
|
|
25
|
-
"🔄 add secrets lifecycle management: https://dotenvx.com/ops",
|
|
26
|
-
"🔑 add access controls to secrets: https://dotenvx.com/ops",
|
|
21
|
+
"🤖 agentic secret storage: https://dotenvx.com/as2",
|
|
22
|
+
"⚡️ secrets for agents: https://dotenvx.com/as2",
|
|
23
|
+
"🛡️ auth for agents: https://vestauth.com",
|
|
27
24
|
"🛠️ run anywhere with `dotenvx run -- yourcommand`",
|
|
28
25
|
"⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
|
|
29
26
|
"⚙️ enable debug logging with { debug: true }",
|
|
@@ -53,11 +50,11 @@ function ee() {
|
|
|
53
50
|
let d;
|
|
54
51
|
for (; (d = M.exec(l)) != null; ) {
|
|
55
52
|
const E = d[1];
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
const o =
|
|
59
|
-
|
|
60
|
-
`),
|
|
53
|
+
let g = d[2] || "";
|
|
54
|
+
g = g.trim();
|
|
55
|
+
const o = g[0];
|
|
56
|
+
g = g.replace(/^(['"`])([\s\S]*)\1$/mg, "$2"), o === '"' && (g = g.replace(/\\n/g, `
|
|
57
|
+
`), g = g.replace(/\\r/g, "\r")), a[E] = g;
|
|
61
58
|
}
|
|
62
59
|
return a;
|
|
63
60
|
}
|
|
@@ -71,17 +68,17 @@ function ee() {
|
|
|
71
68
|
throw o.code = "MISSING_DATA", o;
|
|
72
69
|
}
|
|
73
70
|
const d = y(e).split(","), E = d.length;
|
|
74
|
-
let
|
|
71
|
+
let g;
|
|
75
72
|
for (let o = 0; o < E; o++)
|
|
76
73
|
try {
|
|
77
74
|
const m = d[o].trim(), T = v(l, m);
|
|
78
|
-
|
|
75
|
+
g = _.decrypt(T.ciphertext, T.key);
|
|
79
76
|
break;
|
|
80
77
|
} catch (m) {
|
|
81
78
|
if (o + 1 >= E)
|
|
82
79
|
throw m;
|
|
83
80
|
}
|
|
84
|
-
return _.parse(
|
|
81
|
+
return _.parse(g);
|
|
85
82
|
}
|
|
86
83
|
function p(e) {
|
|
87
84
|
console.error(`[dotenv@${N}][WARN] ${e}`);
|
|
@@ -116,9 +113,9 @@ function ee() {
|
|
|
116
113
|
const m = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
117
114
|
throw m.code = "INVALID_DOTENV_KEY", m;
|
|
118
115
|
}
|
|
119
|
-
const
|
|
116
|
+
const g = `DOTENV_VAULT_${E.toUpperCase()}`, o = e.parsed[g];
|
|
120
117
|
if (!o) {
|
|
121
|
-
const m = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${
|
|
118
|
+
const m = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${g} in your .env.vault file.`);
|
|
122
119
|
throw m.code = "NOT_FOUND_DOTENV_ENVIRONMENT", m;
|
|
123
120
|
}
|
|
124
121
|
return { ciphertext: o, key: d };
|
|
@@ -128,28 +125,28 @@ function ee() {
|
|
|
128
125
|
if (e && e.path && e.path.length > 0)
|
|
129
126
|
if (Array.isArray(e.path))
|
|
130
127
|
for (const l of e.path)
|
|
131
|
-
|
|
128
|
+
h.existsSync(l) && (a = l.endsWith(".vault") ? l : `${l}.vault`);
|
|
132
129
|
else
|
|
133
130
|
a = e.path.endsWith(".vault") ? e.path : `${e.path}.vault`;
|
|
134
131
|
else
|
|
135
132
|
a = t.resolve(process.cwd(), ".env.vault");
|
|
136
|
-
return
|
|
133
|
+
return h.existsSync(a) ? a : null;
|
|
137
134
|
}
|
|
138
135
|
function V(e) {
|
|
139
136
|
return e[0] === "~" ? t.join(n.homedir(), e.slice(1)) : e;
|
|
140
137
|
}
|
|
141
|
-
function
|
|
138
|
+
function $(e) {
|
|
142
139
|
const a = b(process.env.DOTENV_CONFIG_DEBUG || e && e.debug), l = b(process.env.DOTENV_CONFIG_QUIET || e && e.quiet);
|
|
143
140
|
(a || !l) && f("Loading env from encrypted .env.vault");
|
|
144
141
|
const d = _._parseVault(e);
|
|
145
142
|
let E = process.env;
|
|
146
143
|
return e && e.processEnv != null && (E = e.processEnv), _.populate(E, d, e), { parsed: d };
|
|
147
144
|
}
|
|
148
|
-
function
|
|
145
|
+
function x(e) {
|
|
149
146
|
const a = t.resolve(process.cwd(), ".env");
|
|
150
147
|
let l = "utf8", d = process.env;
|
|
151
148
|
e && e.processEnv != null && (d = e.processEnv);
|
|
152
|
-
let E = b(d.DOTENV_CONFIG_DEBUG || e && e.debug),
|
|
149
|
+
let E = b(d.DOTENV_CONFIG_DEBUG || e && e.debug), g = b(d.DOTENV_CONFIG_QUIET || e && e.quiet);
|
|
153
150
|
e && e.encoding ? l = e.encoding : E && i("No encoding is specified. UTF-8 is used by default");
|
|
154
151
|
let o = [a];
|
|
155
152
|
if (e && e.path)
|
|
@@ -164,22 +161,22 @@ function ee() {
|
|
|
164
161
|
const T = {};
|
|
165
162
|
for (const I of o)
|
|
166
163
|
try {
|
|
167
|
-
const
|
|
168
|
-
_.populate(T,
|
|
169
|
-
} catch (
|
|
170
|
-
E && i(`Failed to load ${I} ${
|
|
164
|
+
const R = _.parse(h.readFileSync(I, { encoding: l }));
|
|
165
|
+
_.populate(T, R, e);
|
|
166
|
+
} catch (R) {
|
|
167
|
+
E && i(`Failed to load ${I} ${R.message}`), m = R;
|
|
171
168
|
}
|
|
172
169
|
const P = _.populate(d, T, e);
|
|
173
|
-
if (E = b(d.DOTENV_CONFIG_DEBUG || E),
|
|
174
|
-
const I = Object.keys(P).length,
|
|
170
|
+
if (E = b(d.DOTENV_CONFIG_DEBUG || E), g = b(d.DOTENV_CONFIG_QUIET || g), E || !g) {
|
|
171
|
+
const I = Object.keys(P).length, R = [];
|
|
175
172
|
for (const U of o)
|
|
176
173
|
try {
|
|
177
174
|
const C = t.relative(process.cwd(), U);
|
|
178
|
-
|
|
175
|
+
R.push(C);
|
|
179
176
|
} catch (C) {
|
|
180
177
|
E && i(`Failed to load ${U} ${C.message}`), m = C;
|
|
181
178
|
}
|
|
182
|
-
f(`injecting env (${I}) from ${
|
|
179
|
+
f(`injecting env (${I}) from ${R.join(",")} ${A(`-- tip: ${L()}`)}`);
|
|
183
180
|
}
|
|
184
181
|
return m ? { parsed: T, error: m } : { parsed: T };
|
|
185
182
|
}
|
|
@@ -192,11 +189,11 @@ function ee() {
|
|
|
192
189
|
function q(e, a) {
|
|
193
190
|
const l = Buffer.from(a.slice(-64), "hex");
|
|
194
191
|
let d = Buffer.from(e, "base64");
|
|
195
|
-
const E = d.subarray(0, 12),
|
|
192
|
+
const E = d.subarray(0, 12), g = d.subarray(-16);
|
|
196
193
|
d = d.subarray(12, -16);
|
|
197
194
|
try {
|
|
198
195
|
const o = c.createDecipheriv("aes-256-gcm", l, E);
|
|
199
|
-
return o.setAuthTag(
|
|
196
|
+
return o.setAuthTag(g), `${o.update(d)}${o.final()}`;
|
|
200
197
|
} catch (o) {
|
|
201
198
|
const m = o instanceof RangeError, T = o.message === "Invalid key length", P = o.message === "Unsupported state or unable to authenticate data";
|
|
202
199
|
if (m || T) {
|
|
@@ -210,18 +207,18 @@ function ee() {
|
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
209
|
function J(e, a, l = {}) {
|
|
213
|
-
const d = !!(l && l.debug), E = !!(l && l.override),
|
|
210
|
+
const d = !!(l && l.debug), E = !!(l && l.override), g = {};
|
|
214
211
|
if (typeof a != "object") {
|
|
215
212
|
const o = new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
216
213
|
throw o.code = "OBJECT_REQUIRED", o;
|
|
217
214
|
}
|
|
218
215
|
for (const o of Object.keys(a))
|
|
219
|
-
Object.prototype.hasOwnProperty.call(e, o) ? (E === !0 && (e[o] = a[o],
|
|
220
|
-
return
|
|
216
|
+
Object.prototype.hasOwnProperty.call(e, o) ? (E === !0 && (e[o] = a[o], g[o] = a[o]), d && i(E === !0 ? `"${o}" is already defined and WAS overwritten` : `"${o}" is already defined and was NOT overwritten`)) : (e[o] = a[o], g[o] = a[o]);
|
|
217
|
+
return g;
|
|
221
218
|
}
|
|
222
219
|
const _ = {
|
|
223
|
-
configDotenv:
|
|
224
|
-
_configVault:
|
|
220
|
+
configDotenv: x,
|
|
221
|
+
_configVault: $,
|
|
225
222
|
_parseVault: u,
|
|
226
223
|
config: K,
|
|
227
224
|
decrypt: q,
|
|
@@ -231,15 +228,15 @@ function ee() {
|
|
|
231
228
|
return S.exports.configDotenv = _.configDotenv, S.exports._configVault = _._configVault, S.exports._parseVault = _._parseVault, S.exports.config = _.config, S.exports.decrypt = _.decrypt, S.exports.parse = _.parse, S.exports.populate = _.populate, S.exports = _, S.exports;
|
|
232
229
|
}
|
|
233
230
|
var te = ee();
|
|
234
|
-
const re = k(import.meta.url), ne = j.dirname(re), ye = (
|
|
235
|
-
const { env: t, configPath: n } =
|
|
231
|
+
const re = k(import.meta.url), ne = j.dirname(re), ye = (h = {}) => {
|
|
232
|
+
const { env: t, configPath: n } = h, c = j.resolve(ne, `${n ?? "."}/.env${t ? `.${t}` : ""}`), { parsed: w } = te.config({ path: c });
|
|
236
233
|
return w;
|
|
237
234
|
};
|
|
238
235
|
var F, B;
|
|
239
236
|
function oe() {
|
|
240
237
|
if (B) return F;
|
|
241
238
|
B = 1, F = N, N.default = N, N.stable = D, N.stableStringify = D;
|
|
242
|
-
var
|
|
239
|
+
var h = "[...]", t = "[Circular]", n = [], c = [];
|
|
243
240
|
function w() {
|
|
244
241
|
return {
|
|
245
242
|
depthLimit: Number.MAX_SAFE_INTEGER,
|
|
@@ -275,11 +272,11 @@ function oe() {
|
|
|
275
272
|
return;
|
|
276
273
|
}
|
|
277
274
|
if (typeof v.depthLimit < "u" && y > v.depthLimit) {
|
|
278
|
-
O(
|
|
275
|
+
O(h, r, u, f);
|
|
279
276
|
return;
|
|
280
277
|
}
|
|
281
278
|
if (typeof v.edgesLimit < "u" && p + 1 > v.edgesLimit) {
|
|
282
|
-
O(
|
|
279
|
+
O(h, r, u, f);
|
|
283
280
|
return;
|
|
284
281
|
}
|
|
285
282
|
if (i.push(r), Array.isArray(r))
|
|
@@ -288,8 +285,8 @@ function oe() {
|
|
|
288
285
|
else {
|
|
289
286
|
var V = Object.keys(r);
|
|
290
287
|
for (s = 0; s < V.length; s++) {
|
|
291
|
-
var
|
|
292
|
-
L(r[
|
|
288
|
+
var $ = V[s];
|
|
289
|
+
L(r[$], $, s, i, r, y, v);
|
|
293
290
|
}
|
|
294
291
|
}
|
|
295
292
|
i.pop();
|
|
@@ -329,21 +326,21 @@ function oe() {
|
|
|
329
326
|
return;
|
|
330
327
|
}
|
|
331
328
|
if (typeof v.depthLimit < "u" && y > v.depthLimit) {
|
|
332
|
-
O(
|
|
329
|
+
O(h, r, u, f);
|
|
333
330
|
return;
|
|
334
331
|
}
|
|
335
332
|
if (typeof v.edgesLimit < "u" && p + 1 > v.edgesLimit) {
|
|
336
|
-
O(
|
|
333
|
+
O(h, r, u, f);
|
|
337
334
|
return;
|
|
338
335
|
}
|
|
339
336
|
if (i.push(r), Array.isArray(r))
|
|
340
337
|
for (s = 0; s < r.length; s++)
|
|
341
338
|
A(r[s], s, s, i, r, y, v);
|
|
342
339
|
else {
|
|
343
|
-
var V = {},
|
|
344
|
-
for (s = 0; s <
|
|
345
|
-
var
|
|
346
|
-
A(r[
|
|
340
|
+
var V = {}, $ = Object.keys(r).sort(b);
|
|
341
|
+
for (s = 0; s < $.length; s++) {
|
|
342
|
+
var x = $[s];
|
|
343
|
+
A(r[x], x, s, i, r, y, v), V[x] = r[x];
|
|
347
344
|
}
|
|
348
345
|
if (typeof f < "u")
|
|
349
346
|
n.push([f, u, r]), f[u] = V;
|
|
@@ -515,11 +512,11 @@ class Y {
|
|
|
515
512
|
}), n;
|
|
516
513
|
}
|
|
517
514
|
}
|
|
518
|
-
const me = (
|
|
519
|
-
...
|
|
520
|
-
withTransaction: async (t) => await t(
|
|
521
|
-
withRepositoryManager: () =>
|
|
522
|
-
}), fe = (
|
|
515
|
+
const me = (h) => ({
|
|
516
|
+
...h,
|
|
517
|
+
withTransaction: async (t) => await t(h),
|
|
518
|
+
withRepositoryManager: () => h
|
|
519
|
+
}), fe = (h, t) => `unaccent(LOWER(${h})) ILIKE unaccent(LOWER(:${t}))`, we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
523
520
|
__proto__: null,
|
|
524
521
|
unaccentSearch: fe
|
|
525
522
|
}, Symbol.toStringTag, { value: "Module" }));
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export
|
|
3
|
-
export * from './database';
|
|
1
|
+
export * from '../ts-nodejs/src/index'
|
|
2
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsfsi-core/ts-nodejs",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "npm run lint && tsc && vite build",
|
|
27
|
+
"build:watch": "tsc && (tsc --watch & vite build --watch)",
|
|
27
28
|
"clean": "rm -rf dist && rm -rf node_modules && rm -rf coverage",
|
|
28
29
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
29
30
|
"lint": "npm run lint:fix && npm run format",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@jsfsi-core/ts-crossplatform": "file:../ts-crossplatform",
|
|
37
|
-
"dotenv": "17.
|
|
38
|
+
"dotenv": "17.3.1",
|
|
38
39
|
"fast-safe-stringify": "2.1.1",
|
|
39
40
|
"typeorm": "0.3.28"
|
|
40
41
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|