@lytjs/ssg 6.8.0 → 6.9.1

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 CHANGED
@@ -1,13 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var __defProp = Object.defineProperty;
4
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
6
-
7
3
  // src/generator.ts
8
4
  var SSGGenerator = class {
9
5
  constructor(config) {
10
- __publicField(this, "config", config);
6
+ this.config = config;
11
7
  }
12
8
  async generate() {
13
9
  const results = [];
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generator.ts"],"names":[],"mappings":";;;;;;;AAEO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,MAAA,EAAmB;AAAnB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAAA,EAAoB;AAAA,EAExC,MAAM,QAAA,GAAiC;AACrC,IAAA,MAAM,UAAuB,EAAC;AAE9B,IAAA,KAAA,MAAW,KAAA,IAAS,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ;AACtC,MAAA,OAAA,CAAQ,IAAA,CAAK,MAAM,IAAA,CAAK,aAAA,CAAc,KAAK,CAAC,CAAA;AAAA,IAC9C;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AAAA,EAEA,MAAc,cAAc,KAAA,EAAmC;AAC7D,IAAA,OAAO;AAAA,MACL,KAAA;AAAA,MACA,UAAA,EAAY,EAAA;AAAA,MACZ,OAAA,EAAS;AAAA,KACX;AAAA,EACF;AACF","file":"index.cjs","sourcesContent":["import type { SSGConfig, SSGResult } from './types';\n\nexport class SSGGenerator {\n constructor(private config: SSGConfig) {}\n\n async generate(): Promise<SSGResult[]> {\n const results: SSGResult[] = [];\n\n for (const route of this.config.routes) {\n results.push(await this.generateRoute(route));\n }\n\n return results;\n }\n\n private async generateRoute(route: string): Promise<SSGResult> {\n return {\n route,\n outputPath: '',\n success: true,\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/generator.ts"],"names":[],"mappings":";;;AAEO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,MAAA,EAAmB;AAAnB,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAAoB;AAAA,EAExC,MAAM,QAAA,GAAiC;AACrC,IAAA,MAAM,UAAuB,EAAC;AAE9B,IAAA,KAAA,MAAW,KAAA,IAAS,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ;AACtC,MAAA,OAAA,CAAQ,IAAA,CAAK,MAAM,IAAA,CAAK,aAAA,CAAc,KAAK,CAAC,CAAA;AAAA,IAC9C;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AAAA,EAEA,MAAc,cAAc,KAAA,EAAmC;AAC7D,IAAA,OAAO;AAAA,MACL,KAAA;AAAA,MACA,UAAA,EAAY,EAAA;AAAA,MACZ,OAAA,EAAS;AAAA,KACX;AAAA,EACF;AACF","file":"index.cjs","sourcesContent":["import type { SSGConfig, SSGResult } from './types';\n\nexport class SSGGenerator {\n constructor(private config: SSGConfig) {}\n\n async generate(): Promise<SSGResult[]> {\n const results: SSGResult[] = [];\n\n for (const route of this.config.routes) {\n results.push(await this.generateRoute(route));\n }\n\n return results;\n }\n\n private async generateRoute(route: string): Promise<SSGResult> {\n return {\n route,\n outputPath: '',\n success: true,\n };\n }\n}\n"]}
package/dist/index.mjs CHANGED
@@ -1,11 +1,7 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
4
-
5
1
  // src/generator.ts
6
2
  var SSGGenerator = class {
7
3
  constructor(config) {
8
- __publicField(this, "config", config);
4
+ this.config = config;
9
5
  }
10
6
  async generate() {
11
7
  const results = [];
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/generator.ts"],"names":[],"mappings":";;;;;AAEO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,MAAA,EAAmB;AAAnB,IAAA,aAAA,CAAA,IAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAAA,EAAoB;AAAA,EAExC,MAAM,QAAA,GAAiC;AACrC,IAAA,MAAM,UAAuB,EAAC;AAE9B,IAAA,KAAA,MAAW,KAAA,IAAS,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ;AACtC,MAAA,OAAA,CAAQ,IAAA,CAAK,MAAM,IAAA,CAAK,aAAA,CAAc,KAAK,CAAC,CAAA;AAAA,IAC9C;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AAAA,EAEA,MAAc,cAAc,KAAA,EAAmC;AAC7D,IAAA,OAAO;AAAA,MACL,KAAA;AAAA,MACA,UAAA,EAAY,EAAA;AAAA,MACZ,OAAA,EAAS;AAAA,KACX;AAAA,EACF;AACF","file":"index.mjs","sourcesContent":["import type { SSGConfig, SSGResult } from './types';\n\nexport class SSGGenerator {\n constructor(private config: SSGConfig) {}\n\n async generate(): Promise<SSGResult[]> {\n const results: SSGResult[] = [];\n\n for (const route of this.config.routes) {\n results.push(await this.generateRoute(route));\n }\n\n return results;\n }\n\n private async generateRoute(route: string): Promise<SSGResult> {\n return {\n route,\n outputPath: '',\n success: true,\n };\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/generator.ts"],"names":[],"mappings":";AAEO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,MAAA,EAAmB;AAAnB,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAAoB;AAAA,EAExC,MAAM,QAAA,GAAiC;AACrC,IAAA,MAAM,UAAuB,EAAC;AAE9B,IAAA,KAAA,MAAW,KAAA,IAAS,IAAA,CAAK,MAAA,CAAO,MAAA,EAAQ;AACtC,MAAA,OAAA,CAAQ,IAAA,CAAK,MAAM,IAAA,CAAK,aAAA,CAAc,KAAK,CAAC,CAAA;AAAA,IAC9C;AAEA,IAAA,OAAO,OAAA;AAAA,EACT;AAAA,EAEA,MAAc,cAAc,KAAA,EAAmC;AAC7D,IAAA,OAAO;AAAA,MACL,KAAA;AAAA,MACA,UAAA,EAAY,EAAA;AAAA,MACZ,OAAA,EAAS;AAAA,KACX;AAAA,EACF;AACF","file":"index.mjs","sourcesContent":["import type { SSGConfig, SSGResult } from './types';\n\nexport class SSGGenerator {\n constructor(private config: SSGConfig) {}\n\n async generate(): Promise<SSGResult[]> {\n const results: SSGResult[] = [];\n\n for (const route of this.config.routes) {\n results.push(await this.generateRoute(route));\n }\n\n return results;\n }\n\n private async generateRoute(route: string): Promise<SSGResult> {\n return {\n route,\n outputPath: '',\n success: true,\n };\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lytjs/ssg",
3
- "version": "6.8.0",
3
+ "version": "6.9.1",
4
4
  "description": "LytJS Static Site Generation (SSG) support",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",