@jpmorganchase/mosaic-cli 0.1.0-beta.90 → 0.1.0-beta.92
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/chunk-XMNLIWPG.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/serve.mjs +1 -1
- package/package.json +7 -7
- package/dist/chunk-3CHKQJYA.mjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-XZI6BLBY.mjs";import{a as n}from"./chunk-FCNWFPGR.mjs";import{a as s}from"./chunk-A623VBSD.mjs";import{a}from"./chunk-KX3ED265.mjs";import p from"fastify";import u from"cors";import g from"@fastify/middie";var l="_mosaic_",r=p({logger:!1,pluginTimeout:2e4});async function y(t,i,o){let m=await n(t);await r.register(g),await r.register(a,{config:t,scope:o,mosaic:m}),await r.register(c),await r.register(s,{prefix:l,enableSourcePush:t.enableSourcePush}),r.get("/actuator/keepalive",async(e,f)=>f.code(200).send("OK")),r.use(u()),await(async()=>{try{await r.listen({port:i}),console.log(`[Mosaic] Listening on port ${i}${Array.isArray(o)?` (scoped to ${o.join(", ")})`:""}`)}catch(e){r.log.error(e),process.exit(1)}})()}export{r as a,y as b};
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e}from"./chunk-5Q7PLJAC.mjs";import{b as s}from"./chunk-
|
|
2
|
+
import{a as e}from"./chunk-5Q7PLJAC.mjs";import{b as s}from"./chunk-XMNLIWPG.mjs";import"./chunk-XZI6BLBY.mjs";import{a as p}from"./chunk-P3RXN7HU.mjs";import{a as n}from"./chunk-4JWFWIG4.mjs";import"./chunk-FCNWFPGR.mjs";import"./chunk-A623VBSD.mjs";import"./chunk-KX3ED265.mjs";import{program as r}from"commander";import i from"node:path";import{pathToFileURL as a}from"node:url";r.option("-c, --config <string>","Config path").option("-o, --out <string>","Output directory",".tmp/.mosaic-build").option("-s, --scope <strings>","Command separated namespaces").option("-p, --port <number>","Port to serve on","8080").option("-n, --name <string>","Snapshot name").option("-S, --snapshot <string>","Snapshot path");r.parse();var o=r.opts(),t;if(o.config!==void 0){if(t=await import(a(i.resolve(process.cwd(),o.config)).toString()),!t)throw new Error(`[Mosaic] could not find config file at ${i.resolve(process.cwd(),o.config)}.`)}else throw new Error("[Mosaic] no config file provided");r.args[0]==="build"&&e(t.default,i.resolve(process.cwd(),o.out),o);r.args[0]==="serve"&&s(t.default,o.port,o.scope&&o.scope.split(","));r.args[0]==="upload"&&p(i.resolve(process.cwd(),o.snapshot));r.args[0]==="deploy"&&n(t.default,o);
|
package/dist/serve.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"./chunk-
|
|
1
|
+
import{a,b}from"./chunk-XMNLIWPG.mjs";import"./chunk-XZI6BLBY.mjs";import"./chunk-FCNWFPGR.mjs";import"./chunk-A623VBSD.mjs";import"./chunk-KX3ED265.mjs";export{b as default,a as server};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.92",
|
|
4
4
|
"author": "",
|
|
5
5
|
"description": "Mosaic command line scripts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,24 +38,24 @@
|
|
|
38
38
|
"directory": "packages/cli"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@jpmorganchase/mosaic-types": "^0.1.0-beta.
|
|
41
|
+
"@jpmorganchase/mosaic-types": "^0.1.0-beta.92",
|
|
42
42
|
"esbuild": "0.25.0",
|
|
43
43
|
"esbuild-node-externals": "^1.0.2",
|
|
44
44
|
"fast-glob": "^3.2.7",
|
|
45
45
|
"@types/ws": "^8.5.7"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jpmorganchase/mosaic-core": "^0.1.0-beta.
|
|
49
|
-
"@jpmorganchase/mosaic-plugins": "^0.1.0-beta.
|
|
50
|
-
"@jpmorganchase/mosaic-standard-generator": "^0.1.0-beta.
|
|
51
|
-
"@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.
|
|
48
|
+
"@jpmorganchase/mosaic-core": "^0.1.0-beta.92",
|
|
49
|
+
"@jpmorganchase/mosaic-plugins": "^0.1.0-beta.92",
|
|
50
|
+
"@jpmorganchase/mosaic-standard-generator": "^0.1.0-beta.92",
|
|
51
|
+
"@jpmorganchase/mosaic-source-local-folder": "^0.1.0-beta.92",
|
|
52
52
|
"@aws-sdk/client-s3": "^3.645.0",
|
|
53
53
|
"@fastify/middie": "^9.0.0",
|
|
54
54
|
"@fastify/websocket": "^11.0.0",
|
|
55
55
|
"commander": "^9.4.1",
|
|
56
56
|
"cors": "^2.8.5",
|
|
57
57
|
"deepmerge": "^4.2.2",
|
|
58
|
-
"fastify": "^5.
|
|
58
|
+
"fastify": "^5.3.2",
|
|
59
59
|
"fastify-plugin": "^5.0.0",
|
|
60
60
|
"globby": "^13.1.3",
|
|
61
61
|
"md5": "*",
|
package/dist/chunk-3CHKQJYA.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./chunk-XZI6BLBY.mjs";import{a as c}from"./chunk-FCNWFPGR.mjs";import{a as s}from"./chunk-A623VBSD.mjs";import{a}from"./chunk-KX3ED265.mjs";import f from"fastify";import p from"cors";import g from"@fastify/middie";var l="_mosaic_",r=f({logger:!1,pluginTimeout:2e4});async function u(o,t,i){let m=await c(o);await r.register(g),await r.register(a,{config:o,scope:i,mosaic:m}),await r.register(e),await r.register(s,{prefix:l,enableSourcePush:o.enableSourcePush}),r.use(p()),await(async()=>{try{await r.listen({port:t}),console.log(`[Mosaic] Listening on port ${t}${Array.isArray(i)?` (scoped to ${i.join(", ")})`:""}`)}catch(n){r.log.error(n),process.exit(1)}})()}export{r as a,u as b};
|