@geekron/strapi 0.2.10 → 0.2.11

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.
@@ -1,2 +1,2 @@
1
- export * as translations from "./translations";
1
+ export { translations } from "./translations";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -29,16 +29,11 @@ var __export = (target, all) => {
29
29
  // i18n/index.ts
30
30
  var exports_i18n = {};
31
31
  __export(exports_i18n, {
32
- translations: () => exports_translations
32
+ translations: () => translations
33
33
  });
34
34
  module.exports = __toCommonJS(exports_i18n);
35
35
 
36
36
  // i18n/translations/index.ts
37
- var exports_translations = {};
38
- __export(exports_translations, {
39
- translations: () => translations,
40
- default: () => translations_default
41
- });
42
37
  var addPrefix = (translations, prefix) => {
43
38
  return Object.keys(translations).reduce((acc, key) => {
44
39
  acc[`${prefix}.${key}`] = translations[key];
@@ -120,4 +115,3 @@ var translations = (config) => {
120
115
  return result;
121
116
  }, {});
122
117
  };
123
- var translations_default = translations();
@@ -1,20 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all)
4
- __defProp(target, name, {
5
- get: all[name],
6
- enumerable: true,
7
- configurable: true,
8
- set: (newValue) => all[name] = () => newValue
9
- });
10
- };
11
-
12
1
  // i18n/translations/index.ts
13
- var exports_translations = {};
14
- __export(exports_translations, {
15
- translations: () => translations,
16
- default: () => translations_default
17
- });
18
2
  var addPrefix = (translations, prefix) => {
19
3
  return Object.keys(translations).reduce((acc, key) => {
20
4
  acc[`${prefix}.${key}`] = translations[key];
@@ -96,7 +80,6 @@ var translations = (config) => {
96
80
  return result;
97
81
  }, {});
98
82
  };
99
- var translations_default = translations();
100
83
  export {
101
- exports_translations as translations
84
+ translations
102
85
  };
@@ -51,6 +51,5 @@ interface TranslationsConfig {
51
51
  * ```
52
52
  */
53
53
  export declare const translations: (config?: TranslationsConfig) => Record<string, Record<string, any>>;
54
- declare const _default: Record<string, Record<string, any>>;
55
- export default _default;
54
+ export {};
56
55
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../i18n/translations/index.ts"],"names":[],"mappings":"AAiJA;;GAEG;AACH,UAAU,kBAAkB;IAC3B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC;QAClB,wCAAwC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,wBAAwB;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+B5F,CAAC;;AAGF,wBAA8B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../i18n/translations/index.ts"],"names":[],"mappings":"AAiJA;;GAEG;AACH,UAAU,kBAAkB;IAC3B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC;QAClB,wCAAwC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,wBAAwB;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+B5F,CAAC"}
@@ -227,7 +227,4 @@ export const translations = (config?: TranslationsConfig): Record<string, Record
227
227
  }, {} as Record<string, any>);
228
228
  return result;
229
229
  }, {} as Record<string, Record<string, any>>);
230
- };
231
-
232
- // 默认导出:加载默认翻译目录
233
- export default translations();
230
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekron/strapi",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "极客领航网站管理插件",
5
5
  "type": "commonjs",
6
6
  "author": "Geekron",