@modern-js/tailwindcss-generator 1.1.5 → 1.1.6-rc.0

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.
@@ -27288,7 +27288,7 @@ module.exports.wrap = wrap;
27288
27288
  "use strict";
27289
27289
 
27290
27290
 
27291
- const fs = __webpack_require__(62204)
27291
+ const fs = __webpack_require__(19677)
27292
27292
  const path = __webpack_require__(71017)
27293
27293
  const mkdirsSync = (__webpack_require__(17433).mkdirsSync)
27294
27294
  const utimesMillisSync = (__webpack_require__(16333).utimesMillisSync)
@@ -27475,7 +27475,7 @@ module.exports = {
27475
27475
  "use strict";
27476
27476
 
27477
27477
 
27478
- const fs = __webpack_require__(62204)
27478
+ const fs = __webpack_require__(19677)
27479
27479
  const path = __webpack_require__(71017)
27480
27480
  const mkdirs = (__webpack_require__(17433).mkdirs)
27481
27481
  const pathExists = (__webpack_require__(84906).pathExists)
@@ -27778,7 +27778,7 @@ module.exports = {
27778
27778
 
27779
27779
  const u = (__webpack_require__(84357).fromCallback)
27780
27780
  const path = __webpack_require__(71017)
27781
- const fs = __webpack_require__(62204)
27781
+ const fs = __webpack_require__(19677)
27782
27782
  const mkdir = __webpack_require__(17433)
27783
27783
 
27784
27784
  function createFile (file, callback) {
@@ -27886,7 +27886,7 @@ module.exports = {
27886
27886
 
27887
27887
  const u = (__webpack_require__(84357).fromCallback)
27888
27888
  const path = __webpack_require__(71017)
27889
- const fs = __webpack_require__(62204)
27889
+ const fs = __webpack_require__(19677)
27890
27890
  const mkdir = __webpack_require__(17433)
27891
27891
  const pathExists = (__webpack_require__(84906).pathExists)
27892
27892
  const { areIdentical } = __webpack_require__(31197)
@@ -27957,7 +27957,7 @@ module.exports = {
27957
27957
 
27958
27958
 
27959
27959
  const path = __webpack_require__(71017)
27960
- const fs = __webpack_require__(62204)
27960
+ const fs = __webpack_require__(19677)
27961
27961
  const pathExists = (__webpack_require__(84906).pathExists)
27962
27962
 
27963
27963
  /**
@@ -28063,7 +28063,7 @@ module.exports = {
28063
28063
  "use strict";
28064
28064
 
28065
28065
 
28066
- const fs = __webpack_require__(62204)
28066
+ const fs = __webpack_require__(19677)
28067
28067
 
28068
28068
  function symlinkType (srcpath, type, callback) {
28069
28069
  callback = (typeof type === 'function') ? type : callback
@@ -28194,7 +28194,7 @@ module.exports = {
28194
28194
  // This is adapted from https://github.com/normalize/mz
28195
28195
  // Copyright (c) 2014-2016 Jonathan Ong me@jongleberry.com and Contributors
28196
28196
  const u = (__webpack_require__(84357).fromCallback)
28197
- const fs = __webpack_require__(62204)
28197
+ const fs = __webpack_require__(19677)
28198
28198
 
28199
28199
  const api = [
28200
28200
  'access',
@@ -28527,7 +28527,7 @@ module.exports = {
28527
28527
  "use strict";
28528
28528
 
28529
28529
 
28530
- const fs = __webpack_require__(62204)
28530
+ const fs = __webpack_require__(19677)
28531
28531
  const path = __webpack_require__(71017)
28532
28532
  const copySync = (__webpack_require__(55391).copySync)
28533
28533
  const removeSync = (__webpack_require__(13490).removeSync)
@@ -28603,7 +28603,7 @@ module.exports = {
28603
28603
  "use strict";
28604
28604
 
28605
28605
 
28606
- const fs = __webpack_require__(62204)
28606
+ const fs = __webpack_require__(19677)
28607
28607
  const path = __webpack_require__(71017)
28608
28608
  const copy = (__webpack_require__(97969).copy)
28609
28609
  const remove = (__webpack_require__(13490).remove)
@@ -28685,7 +28685,7 @@ module.exports = move
28685
28685
 
28686
28686
 
28687
28687
  const u = (__webpack_require__(84357).fromCallback)
28688
- const fs = __webpack_require__(62204)
28688
+ const fs = __webpack_require__(19677)
28689
28689
  const path = __webpack_require__(71017)
28690
28690
  const mkdir = __webpack_require__(17433)
28691
28691
  const pathExists = (__webpack_require__(84906).pathExists)
@@ -28752,7 +28752,7 @@ module.exports = {
28752
28752
  "use strict";
28753
28753
 
28754
28754
 
28755
- const fs = __webpack_require__(62204)
28755
+ const fs = __webpack_require__(19677)
28756
28756
  const u = (__webpack_require__(84357).fromCallback)
28757
28757
  const rimraf = __webpack_require__(94392)
28758
28758
 
@@ -28782,7 +28782,7 @@ module.exports = {
28782
28782
  "use strict";
28783
28783
 
28784
28784
 
28785
- const fs = __webpack_require__(62204)
28785
+ const fs = __webpack_require__(19677)
28786
28786
  const path = __webpack_require__(71017)
28787
28787
  const assert = __webpack_require__(39491)
28788
28788
 
@@ -29254,7 +29254,7 @@ module.exports = {
29254
29254
  "use strict";
29255
29255
 
29256
29256
 
29257
- const fs = __webpack_require__(62204)
29257
+ const fs = __webpack_require__(19677)
29258
29258
 
29259
29259
  function utimesMillis (path, atime, mtime, callback) {
29260
29260
  // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback)
@@ -34705,7 +34705,7 @@ exports["default"] = (message) => {
34705
34705
 
34706
34706
  /***/ }),
34707
34707
 
34708
- /***/ 50695:
34708
+ /***/ 83584:
34709
34709
  /***/ ((module) => {
34710
34710
 
34711
34711
  "use strict";
@@ -34736,13 +34736,13 @@ function clone (obj) {
34736
34736
 
34737
34737
  /***/ }),
34738
34738
 
34739
- /***/ 62204:
34739
+ /***/ 19677:
34740
34740
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
34741
34741
 
34742
34742
  var fs = __webpack_require__(57147)
34743
- var polyfills = __webpack_require__(79874)
34744
- var legacy = __webpack_require__(31563)
34745
- var clone = __webpack_require__(50695)
34743
+ var polyfills = __webpack_require__(18187)
34744
+ var legacy = __webpack_require__(15601)
34745
+ var clone = __webpack_require__(83584)
34746
34746
 
34747
34747
  var util = __webpack_require__(73837)
34748
34748
 
@@ -35172,7 +35172,7 @@ function retry () {
35172
35172
 
35173
35173
  /***/ }),
35174
35174
 
35175
- /***/ 31563:
35175
+ /***/ 15601:
35176
35176
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
35177
35177
 
35178
35178
  var Stream = (__webpack_require__(12781).Stream)
@@ -35297,7 +35297,7 @@ function legacy (fs) {
35297
35297
 
35298
35298
  /***/ }),
35299
35299
 
35300
- /***/ 79874:
35300
+ /***/ 18187:
35301
35301
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
35302
35302
 
35303
35303
  var constants = __webpack_require__(22057)
@@ -35612,8 +35612,10 @@ function patch (fs) {
35612
35612
  return function (target, options) {
35613
35613
  var stats = options ? orig.call(fs, target, options)
35614
35614
  : orig.call(fs, target)
35615
- if (stats.uid < 0) stats.uid += 0x100000000
35616
- if (stats.gid < 0) stats.gid += 0x100000000
35615
+ if (stats) {
35616
+ if (stats.uid < 0) stats.uid += 0x100000000
35617
+ if (stats.gid < 0) stats.gid += 0x100000000
35618
+ }
35617
35619
  return stats;
35618
35620
  }
35619
35621
  }
@@ -49831,7 +49833,7 @@ exports.parse = function (s) {
49831
49833
 
49832
49834
  let _fs
49833
49835
  try {
49834
- _fs = __webpack_require__(62204)
49836
+ _fs = __webpack_require__(19677)
49835
49837
  } catch (_) {
49836
49838
  _fs = __webpack_require__(57147)
49837
49839
  }
@@ -62832,7 +62834,7 @@ Object.defineProperty(Duplex.prototype, 'destroyed', {
62832
62834
 
62833
62835
  module.exports = PassThrough;
62834
62836
 
62835
- var Transform = __webpack_require__(65977);
62837
+ var Transform = __webpack_require__(31563);
62836
62838
 
62837
62839
  __webpack_require__(57337)(PassThrough, Transform);
62838
62840
 
@@ -63978,7 +63980,7 @@ function indexOf(xs, x) {
63978
63980
 
63979
63981
  /***/ }),
63980
63982
 
63981
- /***/ 65977:
63983
+ /***/ 31563:
63982
63984
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
63983
63985
 
63984
63986
  "use strict";
@@ -65775,7 +65777,7 @@ if (process.env.READABLE_STREAM === 'disable' && Stream) {
65775
65777
  exports.Readable = exports;
65776
65778
  exports.Writable = __webpack_require__(72437);
65777
65779
  exports.Duplex = __webpack_require__(91008);
65778
- exports.Transform = __webpack_require__(65977);
65780
+ exports.Transform = __webpack_require__(31563);
65779
65781
  exports.PassThrough = __webpack_require__(61417);
65780
65782
  exports.finished = __webpack_require__(97648);
65781
65783
  exports.pipeline = __webpack_require__(20721);
@@ -89454,10 +89456,18 @@ class I18n {
89454
89456
  }
89455
89457
 
89456
89458
  getMessage(lang, key, vars, fallbackText) {
89457
- const model = this.languageMap[lang];
89459
+ // 判断语言当前语料库是否存在,不存在使用 en 作为默认语言
89460
+ const languages = Object.keys(this.languageMap);
89461
+ const resultLang = languages.find(l => l === lang);
89462
+
89463
+ if (!resultLang && languages.length === 0) {
89464
+ return fallbackText || key;
89465
+ }
89466
+
89467
+ const model = this.languageMap[resultLang || 'en' || 0];
89458
89468
 
89459
89469
  if (!model) {
89460
- throw new Error(`current ${lang} language is not exisit`);
89470
+ return fallbackText || key;
89461
89471
  }
89462
89472
 
89463
89473
  const message = (0, _get2.default)(model, key);
@@ -90065,7 +90075,7 @@ const SubSolutionSchema = {
90065
90075
  if (data.solution && data.solution !== 'custom') {
90066
90076
  items.push({
90067
90077
  key: data.solution,
90068
- label: `${SolutionText[data.solution]()}(${_locale.i18n.t(_locale.localeKeys.solution.default)})`
90078
+ label: `${SubSolutionText[data.solution]()}(${_locale.i18n.t(_locale.localeKeys.solution.default)})`
90069
90079
  });
90070
90080
  }
90071
90081
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.5",
14
+ "version": "1.1.6-rc.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/js/node/main.js",
17
17
  "files": [
@@ -23,14 +23,14 @@
23
23
  "@modern-js/codesmith": "^1.0.7",
24
24
  "@modern-js/codesmith-api-app": "^1.0.7",
25
25
  "@modern-js/codesmith-tools": "^1.0.8",
26
- "@modern-js/generator-common": "^1.2.1",
27
- "@modern-js/dependence-generator": "^1.1.4",
26
+ "@modern-js/generator-common": "^1.2.3-rc.0",
27
+ "@modern-js/dependence-generator": "^1.1.5-rc.0",
28
28
  "@types/jest": "^26",
29
29
  "@types/lodash": "^4.14.168",
30
30
  "@types/node": "^14",
31
31
  "typescript": "^4",
32
- "@modern-js/module-tools": "^1.1.3",
33
- "@modern-js/plugin-testing": "^1.2.1"
32
+ "@modern-js/module-tools": "^1.1.4",
33
+ "@modern-js/plugin-testing": "^1.2.2"
34
34
  },
35
35
  "sideEffects": false,
36
36
  "modernConfig": {