zova-module-a-api 5.1.22 → 5.1.23

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.
@@ -8,7 +8,7 @@ export default async function (options: IMetadataCustomGenerateOptions): Promise
8
8
  const contentExports: string[] = [];
9
9
  // openapi
10
10
  if (fse.existsSync(path.join(modulePath, 'src/api/openapi/index.ts'))) {
11
- contentExports.push("export * from '../api/openapi/index.js';");
11
+ contentExports.push("export * from '../api/openapi/index.ts';");
12
12
  }
13
13
  // combine
14
14
  const content = `/** openapi: begin */
@@ -1,5 +1,5 @@
1
1
  /** bean: begin */
2
- export * from '../bean/bean.apiBase.js';
2
+ export * from '../bean/bean.apiBase.ts';
3
3
  import 'zova';
4
4
  declare module 'zova' {
5
5
  }
@@ -7,7 +7,7 @@ declare module 'zova-module-a-api' {
7
7
  }
8
8
  /** bean: end */
9
9
  /** bean: begin */
10
- import { BeanApiBase } from '../bean/bean.apiBase.js';
10
+ import type { BeanApiBase } from '../bean/bean.apiBase.ts';
11
11
  import 'zova';
12
12
  declare module 'zova' {
13
13
  interface IBeanRecordGeneral {
@@ -16,11 +16,11 @@ declare module 'zova' {
16
16
  }
17
17
  /** bean: end */
18
18
  /** config: begin */
19
- export * from '../config/config.js';
20
- import { config } from '../config/config.js';
19
+ export * from '../config/config.ts';
20
+ import { config } from '../config/config.ts';
21
21
  /** config: end */
22
22
  /** monkey: begin */
23
- export * from '../monkey.js';
23
+ export * from '../monkey.ts';
24
24
  /** monkey: end */
25
25
  /** scope: begin */
26
26
  import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"mappings":"AACA,kBAAkB;AAClB,cAAc,yBAAyB,CAAC;AAExC,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;CAGrB;AACD,OAAO,QAAQ,mBAAmB,CAAC;C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,EAAE,WAAW,CAAC;KACnC;CACF;AACD,gBAAgB;AAChB,oBAAoB;AACpB,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,kBAAkB;AAClB,oBAAoB;AACpB,cAAc,cAAc,CAAC;AAC7B,kBAAkB;AAClB,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAG3E,qBACa,eAAgB,SAAQ,aAAa;CAAG;AAErD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,gBAAgB,CAAC,OAAO,MAAM,CAAC,CAAC;CACvC;AAED,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,eAAe,CAAC;KAC1B;IAED,UAAiB,gBAAgB;QAC/B,OAAO,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;KACpC;CAKF;AAED,iBAAiB"}
@@ -1,3 +1,3 @@
1
1
  export declare const __ThisModule__ = "a-api";
2
- export { ScopeModuleAApi as ScopeModule } from './index.js';
2
+ export { ScopeModuleAApi as ScopeModule } from './index.ts';
3
3
  //# sourceMappingURL=this.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  import { BeanBase, TypeAuthToken } from 'zova';
3
- import type { IApiActionOptions } from '../types/api.js';
3
+ import type { IApiActionOptions } from '../types/api.ts';
4
4
  export declare class BeanApiBase extends BeanBase {
5
5
  $pathTranslate(pathName: string, pathParams?: Record<string, any>): string;
6
6
  $configPrepare(baseURL?: string, options?: IApiActionOptions, authToken?: TypeAuthToken): AxiosRequestConfig;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './.metadata/index.js';
2
- export * from './lib/index.js';
3
- export * from './types/index.js';
1
+ export * from './.metadata/index.ts';
2
+ export * from './lib/index.ts';
3
+ export * from './types/index.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  import { BeanBase, BeanInfo, BeanScopeBase, BeanSimple, Virtual, appResource, cast, createBeanDecorator } from "zova";
2
2
  import { Bean, Scope } from "zova-module-a-bean";
3
3
  //#region src/bean/bean.apiBase.ts
4
- var _dec$1, _dec2$1, _dec3, _class$1;
4
+ var _dec$1;
5
+ var _dec2$1;
6
+ var _dec3;
7
+ var _class$1;
5
8
  var BeanApiBase = (_dec$1 = Bean(), _dec2$1 = Virtual(), _dec3 = BeanInfo({ module: "a-api" }), _dec$1(_class$1 = _dec2$1(_class$1 = _dec3(_class$1 = class BeanApiBase extends BeanBase {
6
9
  $pathTranslate(pathName, pathParams) {
7
10
  return this.sys.util.apiActionPathTranslate(pathName, pathParams);
@@ -74,9 +77,9 @@ var Monkey = class extends BeanSimple {
74
77
  };
75
78
  //#endregion
76
79
  //#region src/.metadata/index.ts
77
- /** monkey: end */
78
- /** scope: begin */
79
- var _dec, _dec2, _class;
80
+ var _dec;
81
+ var _dec2;
82
+ var _class;
80
83
  var ScopeModuleAApi = (_dec = Scope(), _dec2 = BeanInfo({ module: "a-api" }), _dec(_class = _dec2(_class = class ScopeModuleAApi extends BeanScopeBase {}) || _class) || _class);
81
84
  /** scope: end */
82
85
  //#endregion
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/bean/bean.apiBase.ts","../src/config/config.ts","../src/.metadata/this.ts","../src/monkey.ts","../src/.metadata/index.ts","../src/lib/api.ts"],"sourcesContent":["var _dec, _dec2, _dec3, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Virtual } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nexport let BeanApiBase = (_dec = Bean(), _dec2 = Virtual(), _dec3 = __z_BeanInfo({\n module: \"a-api\"\n}), _dec(_class = _dec2(_class = _dec3(_class = class BeanApiBase extends BeanBase {\n $pathTranslate(pathName, pathParams) {\n return this.sys.util.apiActionPathTranslate(pathName, pathParams);\n }\n $configPrepare(baseURL, options, authToken) {\n return this.sys.util.apiActionConfigPrepare(baseURL, options, authToken);\n }\n $formData(body) {\n const formData = new FormData();\n for (const key in body) {\n const value = body[key];\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(key, item);\n }\n } else {\n formData.append(key, value);\n }\n }\n return formData;\n }\n}) || _class) || _class) || _class);","export const config = _sys => {\n return {\n defaultModuleApi: 'home-api'\n };\n};","export const __ThisModule__ = 'a-api';\nexport { ScopeModuleAApi as ScopeModule } from './index.js';","import { appResource, BeanSimple, cast } from 'zova';\nimport { __ThisModule__ } from './.metadata/this.js';\nexport class Monkey extends BeanSimple {\n constructor(moduleSelf) {\n super();\n this._moduleSelf = void 0;\n this._defaultModuleApi = void 0;\n this._moduleSelf = moduleSelf;\n }\n async moduleLoading(_module) {}\n async moduleLoaded(module) {\n // load apis\n const promises = [];\n promises.push(this._loadApis(module, 'api'));\n promises.push(this._loadApis(module, 'apiSchema'));\n await Promise.all(promises);\n // self\n if (this._moduleSelf === module) {\n const scopeSelf = await this.bean.getScope(__ThisModule__);\n this._defaultModuleApi = scopeSelf.config.defaultModuleApi;\n await this.app.meta.module.use(this._defaultModuleApi);\n }\n }\n async beanInit(bean, beanInstance) {\n const self = this;\n for (const sceneName of ['api', 'apiSchema']) {\n bean.defineProperty(beanInstance, `$${sceneName}`, {\n enumerable: false,\n configurable: true,\n get() {\n return cast(self.app.bean.scope(self._defaultModuleApi))[sceneName];\n }\n });\n }\n }\n async _loadApis(module, sceneName) {\n const onions = appResource.scenes[sceneName]?.[module.info.relativeName];\n if (!onions) return;\n const scope = this.bean.scope(module.info.relativeName);\n const beanFullNames = Object.keys(onions);\n const promises = [];\n for (const beanFullName of beanFullNames) {\n promises.push(this.bean._getBean(beanFullName, true));\n }\n const values = await Promise.all(promises);\n for (let index = 0; index < beanFullNames.length; index++) {\n const beanFullName = beanFullNames[index];\n const beanOptions = onions[beanFullName];\n scope[sceneName][beanOptions.name] = values[index];\n }\n }\n}","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** bean: begin */\nexport * from '../bean/bean.apiBase.js';\nimport 'zova';\n/** bean: end */\n/** bean: begin */\n\nimport 'zova';\n/** bean: end */\n/** config: begin */\nexport * from '../config/config.js';\n/** config: end */\n/** monkey: begin */\nexport * from '../monkey.js';\n/** monkey: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleAApi = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-api\"\n}), _dec(_class = _dec2(_class = class ScopeModuleAApi extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */","import { createBeanDecorator } from 'zova';\nexport function Api() {\n return createBeanDecorator('api', 'app');\n}\nexport function ApiMeta() {\n return createBeanDecorator('apiMeta', 'app');\n}\nexport function ApiSchema() {\n return createBeanDecorator('apiSchema', 'app');\n}"],"mappings":";;;AAAA,IAAI,QAAM,SAAO,OAAO;AAIxB,IAAW,eAAe,SAAO,KAAK,GAAG,UAAQ,QAAQ,GAAG,QAAQ,SAAa,EAC/E,QAAQ,QACV,CAAC,GAAG,OAAK,WAAS,QAAM,WAAS,MAAM,WAAS,MAAM,oBAAoB,SAAS;CACjF,eAAe,UAAU,YAAY;EACnC,OAAO,KAAK,IAAI,KAAK,uBAAuB,UAAU,UAAU;CAClE;CACA,eAAe,SAAS,SAAS,WAAW;EAC1C,OAAO,KAAK,IAAI,KAAK,uBAAuB,SAAS,SAAS,SAAS;CACzE;CACA,UAAU,MAAM;EACd,MAAM,WAAW,IAAI,SAAS;EAC9B,KAAK,MAAM,OAAO,MAAM;GACtB,MAAM,QAAQ,KAAK;GACnB,IAAI,MAAM,QAAQ,KAAK,GACrB,KAAK,MAAM,QAA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AW,CAAC;EAClB,KAAK,MAAM,gBAAgB,eACzB,SAAS,KAAK,KAAK,KAAK,SAAS,cAAc,IAAI,CAAC;EAEtD,MAAM,SAAS,MAAM,QAAQ,IAAI,QAAQ;EACzC,KAAK,IAAI,QAAQ,GAAG,QAAQ,cAAc,QAAQ,SAAS;GAEzD,MAAM,cAAc,OADC,cAAc;GAEnC,MAAM,UAAU,CAAC,YAAY,QAAQ,OAAO;EAC9C;CACF;AACF;;;;;ACnDA,IAAI,MAAM,OAAO;AAoBjB,IAAW,mBAAmB,OAAO,MAAM,GAAG,QAAQ,SAAa,EACjE,QAAQ,QACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,wBAAwB,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK;;;;ACrB/F,SAAgB,MAAM;CACpB,OAAO,oBAAoB,OAAO,KAAK;AACzC;AACA,SAAgB,UAAU;CACxB,OAAO,oBAAoB,WAAW,KAAK;AAC7C;AACA,SAAgB,YAAY;CAC1B,OAAO,oBAAoB,aAAa,KAAK;AAC/C"}
1
+ {"version":3,"file":"index.js","names":["_dec","_dec2","_class","__z_BeanInfo","__z_BeanInfo"],"sources":["../src/bean/bean.apiBase.ts","../src/config/config.ts","../src/.metadata/this.ts","../src/monkey.ts","../src/.metadata/index.ts","../src/lib/api.ts"],"sourcesContent":["var _dec, _dec2, _dec3, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\nimport { BeanBase, Virtual } from 'zova';\nimport { Bean } from 'zova-module-a-bean';\nexport let BeanApiBase = (_dec = Bean(), _dec2 = Virtual(), _dec3 = __z_BeanInfo({\n module: \"a-api\"\n}), _dec(_class = _dec2(_class = _dec3(_class = class BeanApiBase extends BeanBase {\n $pathTranslate(pathName, pathParams) {\n return this.sys.util.apiActionPathTranslate(pathName, pathParams);\n }\n $configPrepare(baseURL, options, authToken) {\n return this.sys.util.apiActionConfigPrepare(baseURL, options, authToken);\n }\n $formData(body) {\n const formData = new FormData();\n for (const key in body) {\n const value = body[key];\n if (Array.isArray(value)) {\n for (const item of value) {\n formData.append(key, item);\n }\n } else {\n formData.append(key, value);\n }\n }\n return formData;\n }\n}) || _class) || _class) || _class);","export const config = _sys => {\n return {\n defaultModuleApi: 'home-api'\n };\n};","export const __ThisModule__ = 'a-api';\nexport { ScopeModuleAApi as ScopeModule } from './index.ts';","import { appResource, BeanSimple, cast } from 'zova';\nimport { __ThisModule__ } from './.metadata/this.ts';\nexport class Monkey extends BeanSimple {\n constructor(moduleSelf) {\n super();\n this._moduleSelf = void 0;\n this._defaultModuleApi = void 0;\n this._moduleSelf = moduleSelf;\n }\n async moduleLoading(_module) {}\n async moduleLoaded(module) {\n // load apis\n const promises = [];\n promises.push(this._loadApis(module, 'api'));\n promises.push(this._loadApis(module, 'apiSchema'));\n await Promise.all(promises);\n // self\n if (this._moduleSelf === module) {\n const scopeSelf = await this.bean.getScope(__ThisModule__);\n this._defaultModuleApi = scopeSelf.config.defaultModuleApi;\n await this.app.meta.module.use(this._defaultModuleApi);\n }\n }\n async beanInit(bean, beanInstance) {\n const self = this;\n for (const sceneName of ['api', 'apiSchema']) {\n bean.defineProperty(beanInstance, `$${sceneName}`, {\n enumerable: false,\n configurable: true,\n get() {\n return cast(self.app.bean.scope(self._defaultModuleApi))[sceneName];\n }\n });\n }\n }\n async _loadApis(module, sceneName) {\n const onions = appResource.scenes[sceneName]?.[module.info.relativeName];\n if (!onions) return;\n const scope = this.bean.scope(module.info.relativeName);\n const beanFullNames = Object.keys(onions);\n const promises = [];\n for (const beanFullName of beanFullNames) {\n promises.push(this.bean._getBean(beanFullName, true));\n }\n const values = await Promise.all(promises);\n for (let index = 0; index < beanFullNames.length; index++) {\n const beanFullName = beanFullNames[index];\n const beanOptions = onions[beanFullName];\n scope[sceneName][beanOptions.name] = values[index];\n }\n }\n}","var _dec, _dec2, _class;\nimport { \"BeanInfo\" as __z_BeanInfo } from \"zova\";\n// eslint-disable\n/** bean: begin */\nexport * from '../bean/bean.apiBase.ts';\nimport 'zova';\n/** bean: end */\n/** bean: begin */\n\nimport 'zova';\n/** bean: end */\n/** config: begin */\nexport * from '../config/config.ts';\n/** config: end */\n/** monkey: begin */\nexport * from '../monkey.ts';\n/** monkey: end */\n/** scope: begin */\nimport { BeanScopeBase } from 'zova';\nimport { Scope } from 'zova-module-a-bean';\nexport let ScopeModuleAApi = (_dec = Scope(), _dec2 = __z_BeanInfo({\n module: \"a-api\"\n}), _dec(_class = _dec2(_class = class ScopeModuleAApi extends BeanScopeBase {}) || _class) || _class);\nimport 'zova';\n\n/** scope: end */","import { createBeanDecorator } from 'zova';\nexport function Api() {\n return createBeanDecorator('api', 'app');\n}\nexport function ApiMeta() {\n return createBeanDecorator('apiMeta', 'app');\n}\nexport function ApiSchema() {\n return createBeanDecorator('apiSchema', 'app');\n}"],"mappings":";;;AAAA,IAAIA;AAAMC,IAAAA;AAAO,IAAA;AAAOC,IAAAA;AAIxB,IAAW,eAAe,SAAO,KAAK,GAAG,UAAQ,QAAQ,GAAG,QAAQC,SAAa,EAC/E,QAAQ,QACV,CAAC,GAAGH,OAAK,WAASC,QAAM,WAAS,MAAM,WAAS,MAAM,oBAAoB,SAAS;CACjF,eAAe,UAAU,YAAY;EACnC,OAAO,KAAK,IAAI,KAAK,uBAAuB,UAAU,UAAU;CAClE;CACA,eAAe,SAAS,SAAS,WAAW;EAC1C,OAAO,KAAK,IAAI,KAAK,uBAAuB,SAAS,SAAS,SAAS;CACzE;CACA,UAAU,MAAM;EACd,MAAM,WAAW,IAAI,SAAS;EAC9B,KAAK,MAAM,OAAO,MAAM;GACtB,MAAM,QAAQ,KAAK;GACnB,IAAI,MAAM,QAAQ,KAAK,GACrB,KAAK,MAAM,QAAQ,OACjB,SAAS,OAAO,KAAK,IAAI;QAG3B,SAAS,OAAO,KAAK,KAAK;EAE9B;EACA,OAAO;CACT;AACF,CAAC,KAAKC,QAAM,KAAKA,QAAM,KAAKA;;;AC3B5B,IAAa,UAAS,SAAQ;CAC5B,OA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AAQ,cAAc,QAAQ,SAAS;GAEzD,MAAM,cAAc,OADC,cAAc;GAEnC,MAAM,UAAU,CAAC,YAAY,QAAQ,OAAO;EAC9C;CACF;AACF;;;ACnDA,IAAI;AAAM,IAAA;AAAO,IAAA;AAoBjB,IAAW,mBAAmB,OAAO,MAAM,GAAG,QAAQE,SAAa,EACjE,QAAQ,QACV,CAAC,GAAG,KAAK,SAAS,MAAM,SAAS,MAAM,wBAAwB,cAAc,CAAC,CAAC,KAAK,MAAM,KAAK;;;;ACrB/F,SAAgB,MAAM;CACpB,OAAO,oBAAoB,OAAO,KAAK;AACzC;AACA,SAAgB,UAAU;CACxB,OAAO,oBAAoB,WAAW,KAAK;AAC7C;AACA,SAAgB,YAAY;CAC1B,OAAO,oBAAoB,aAAa,KAAK;AAC/C"}
@@ -1,2 +1,2 @@
1
- export * from './api.js';
1
+ export * from './api.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './api.js';
2
- export * from './apiMeta.js';
3
- export * from './apiSchema.js';
1
+ export * from './api.ts';
2
+ export * from './apiMeta.ts';
3
+ export * from './apiSchema.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -5,7 +5,7 @@ export default async function (options) {
5
5
  const contentExports = [];
6
6
  // openapi
7
7
  if (fse.existsSync(path.join(modulePath, 'src/api/openapi/index.ts'))) {
8
- contentExports.push("export * from '../api/openapi/index.js';");
8
+ contentExports.push("export * from '../api/openapi/index.ts';");
9
9
  }
10
10
  // combine
11
11
  const content = `/** openapi: begin */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-api",
3
- "version": "5.1.22",
4
- "gitHead": "eb85d771ef75776a439e56df3af8be6a3a36c1c2",
3
+ "version": "5.1.23",
4
+ "gitHead": "c27fb3b5f3566b676b7d635e2e26545c6d389ad7",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -1,6 +1,6 @@
1
1
  // eslint-disable
2
2
  /** bean: begin */
3
- export * from '../bean/bean.apiBase.js';
3
+ export * from '../bean/bean.apiBase.ts';
4
4
 
5
5
  import 'zova';
6
6
  declare module 'zova' {
@@ -12,7 +12,7 @@ declare module 'zova-module-a-api' {
12
12
  }
13
13
  /** bean: end */
14
14
  /** bean: begin */
15
- import { BeanApiBase } from '../bean/bean.apiBase.js';
15
+ import type { BeanApiBase } from '../bean/bean.apiBase.ts';
16
16
  import 'zova';
17
17
  declare module 'zova' {
18
18
  export interface IBeanRecordGeneral {
@@ -21,11 +21,11 @@ declare module 'zova' {
21
21
  }
22
22
  /** bean: end */
23
23
  /** config: begin */
24
- export * from '../config/config.js';
25
- import { config } from '../config/config.js';
24
+ export * from '../config/config.ts';
25
+ import { config } from '../config/config.ts';
26
26
  /** config: end */
27
27
  /** monkey: begin */
28
- export * from '../monkey.js';
28
+ export * from '../monkey.ts';
29
29
  /** monkey: end */
30
30
  /** scope: begin */
31
31
  import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
@@ -1,2 +1,2 @@
1
1
  export const __ThisModule__ = 'a-api';
2
- export { ScopeModuleAApi as ScopeModule } from './index.js';
2
+ export { ScopeModuleAApi as ScopeModule } from './index.ts';
@@ -3,7 +3,7 @@ import type { AxiosRequestConfig } from 'axios';
3
3
  import { BeanBase, TypeAuthToken, Virtual } from 'zova';
4
4
  import { Bean } from 'zova-module-a-bean';
5
5
 
6
- import type { IApiActionOptions } from '../types/api.js';
6
+ import type { IApiActionOptions } from '../types/api.ts';
7
7
 
8
8
  @Bean()
9
9
  @Virtual()
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './.metadata/index.js';
2
- export * from './lib/index.js';
3
- export * from './types/index.js';
1
+ export * from './.metadata/index.ts';
2
+ export * from './lib/index.ts';
3
+ export * from './types/index.ts';
package/src/lib/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './api.js';
1
+ export * from './api.ts';
package/src/monkey.ts CHANGED
@@ -9,9 +9,9 @@ import type {
9
9
 
10
10
  import { appResource, BeanSimple, cast } from 'zova';
11
11
 
12
- import type { ScopeModule } from './.metadata/this.js';
12
+ import type { ScopeModule } from './.metadata/this.ts';
13
13
 
14
- import { __ThisModule__ } from './.metadata/this.js';
14
+ import { __ThisModule__ } from './.metadata/this.ts';
15
15
 
16
16
  export class Monkey extends BeanSimple implements IMonkeyModule, IMonkeyBeanInit {
17
17
  private _moduleSelf: IModule;
@@ -1,3 +1,3 @@
1
- export * from './api.js';
2
- export * from './apiMeta.js';
3
- export * from './apiSchema.js';
1
+ export * from './api.ts';
2
+ export * from './apiMeta.ts';
3
+ export * from './apiSchema.ts';