@ossy/app 0.4.2 → 0.4.3

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/cli/build.js CHANGED
@@ -17,7 +17,7 @@ import arg from 'arg'
17
17
  // import inject from '@rollup/plugin-inject'
18
18
 
19
19
  export const build = async (cliArgs) => {
20
- console.log('[@ossy/cli][app][build] Starting...')
20
+ console.log('[@ossy/app][build] Starting...')
21
21
 
22
22
  const options = arg({
23
23
  '--source': String,
@@ -45,7 +45,7 @@ export const build = async (cliArgs) => {
45
45
  const inputFiles = [inputClient, inputServer]
46
46
 
47
47
  if (!fs.existsSync(appSourcePath)) {
48
- throw new Error(`[@ossy/cli][app][build] Source path does not exist: ${appSourcePath}`);
48
+ throw new Error(`[@ossy/app][build] Source path does not exist: ${appSourcePath}`);
49
49
  }
50
50
 
51
51
  if (!fs.existsSync(apiSourcePath)) {
@@ -133,5 +133,5 @@ export const build = async (cliArgs) => {
133
133
  await bundle.write(options);
134
134
  }
135
135
 
136
- console.log('[@ossy/cli][app][build] Finished');
136
+ console.log('[@ossy/app][build] Finished');
137
137
  };
package/cli/dev.js CHANGED
@@ -17,7 +17,7 @@ import arg from 'arg'
17
17
  // import inject from '@rollup/plugin-inject'
18
18
 
19
19
  export const dev = async (cliArgs) => {
20
- console.log('[@ossy/cli][app][build] Starting...')
20
+ console.log('[@ossy/app][build] Starting...')
21
21
 
22
22
  const options = arg({
23
23
  '--source': String,
@@ -45,7 +45,7 @@ export const dev = async (cliArgs) => {
45
45
  const inputFiles = [inputClient, inputServer]
46
46
 
47
47
  if (!fs.existsSync(appSourcePath)) {
48
- throw new Error(`[@ossy/cli][app][build] Source path does not exist: ${appSourcePath}`);
48
+ throw new Error(`[@ossy/app][build] Source path does not exist: ${appSourcePath}`);
49
49
  }
50
50
 
51
51
  if (!fs.existsSync(apiSourcePath)) {
@@ -133,5 +133,5 @@ export const dev = async (cliArgs) => {
133
133
  await bundle.write(options);
134
134
  }
135
135
 
136
- console.log('[@ossy/cli][app][build] Finished');
136
+ console.log('[@ossy/app][build] Finished');
137
137
  };
package/cli/server.js CHANGED
@@ -17,7 +17,7 @@ const ROOT_PATH = path.resolve(currentDir, 'public')
17
17
 
18
18
 
19
19
  if (Middleware !== undefined) {
20
- console.log(`[@ossy/cli][app][server] ${Middleware?.length || 0} custom middleware loaded`)
20
+ console.log(`[@ossy/app][server] ${Middleware?.length || 0} custom middleware loaded`)
21
21
  }
22
22
 
23
23
  const middleware = [
@@ -36,7 +36,7 @@ app.all('/*all', (req, res) => {
36
36
  const apiRoute = ApiRouter.getPageByUrl(pathname)
37
37
 
38
38
  if (apiRoute) {
39
- console.log(`[@ossy/cli][app][server] Handling API route: ${pathname}`)
39
+ console.log(`[@ossy/app][server] Handling API route: ${pathname}`)
40
40
  apiRoute.handle(req, res)
41
41
  }
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -50,5 +50,5 @@
50
50
  "/cli",
51
51
  "README.md"
52
52
  ],
53
- "gitHead": "7d9be38cf8056f62145f0b67805f5ebef349f516"
53
+ "gitHead": "8449a9e996f4bc10ba4253ca216f818f155f5bf3"
54
54
  }