@vtj/local 0.9.0-alpha.45 → 0.9.0-alpha.47

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.
Files changed (2) hide show
  1. package/dist/service.mjs +8 -2
  2. package/package.json +4 -4
package/dist/service.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  ProjectModel
3
3
  } from "@vtj/core";
4
4
  import { resolve } from "path";
5
- import { readJsonSync, upperFirstCamelCase, timestamp } from "@vtj/node";
5
+ import { readJsonSync, upperFirstCamelCase, timestamp, merge } from "@vtj/node";
6
6
  import { generator, createEmptyPage } from "@vtj/coder";
7
7
  import { fail, success } from "./shared.mjs";
8
8
  import {
@@ -25,13 +25,19 @@ export async function getExtension(_body, opts) {
25
25
  const root = resolve("./");
26
26
  const pkg = readJsonSync(resolve(root, "package.json"));
27
27
  const { vtj = {} } = pkg || {};
28
+ const adapters = {
29
+ remote: "https://lcdp.vtj.pro",
30
+ access: {
31
+ privateKey: "MIIBOgIBAAJBAKoIzmn1FYQ1YOhOBw9EhABxZ+PySAIaydI+zdhoKflrdgJ4A5E4/5gbQmRpk09hPWG8nvX7h+l/QLU8kXxAIBECAwEAAQJAAlgpxQY6sByLsXqzJcthC8LSGsLf2JEJkHwlnpwFqlEV8UCkoINpuZ2Wzl+aftURu5rIfAzRCQBvHmeOTW9/zQIhAO5ufWDmnSLyfAAsNo5JRNpVuLFCFodR8Xm+ulDlosR/AiEAtpAltyP9wmCABKG/v/hrtTr3mcvFNGCjoGa9bUAok28CIHbrVs9w1ijrBlvTsXYwJw46uP539uKRRT4ymZzlm9QjAiB+1KH/G9f9pEEL9rtaSOG7JF5D0JcOjlze4MGVFs+ZrQIhALKOUFBNr2zEsyJIjw2PlvEucdlG77UniszjXTROHSPd"
32
+ }
33
+ };
28
34
  const extension = {
29
35
  ...vtj.extension || {},
30
36
  history: vtj.history || "hash",
31
37
  base: vtj.base || "/",
32
38
  pageRouteName: vtj.pageRouteName || "page",
33
39
  __BASE_PATH__: opts.staticBase,
34
- __adapters__: vtj.adapters || {}
40
+ __adapters__: merge({}, adapters, vtj.adapters || {})
35
41
  };
36
42
  return success(extension);
37
43
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@vtj/local",
3
3
  "private": false,
4
- "version": "0.9.0-alpha.45",
4
+ "version": "0.9.0-alpha.47",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "formidable": "~3.5.1",
8
- "@vtj/coder": "~0.9.0-alpha.45",
9
- "@vtj/node": "~0.9.0-alpha.2",
10
- "@vtj/core": "~0.9.0-alpha.45"
8
+ "@vtj/coder": "~0.9.0-alpha.47",
9
+ "@vtj/core": "~0.9.0-alpha.47",
10
+ "@vtj/node": "~0.9.0-alpha.2"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/formidable": "~3.4.5",