balm-core 3.33.2 → 3.33.3

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.
@@ -126,7 +126,7 @@ var gulpSass = function gulpSass(options) {
126
126
  // Create alias
127
127
  if (!opts.importer) {
128
128
  var aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter(function (key) {
129
- return /^@\w+/.test(key);
129
+ return /^@[a-z0-9-]{1,213}/.test(key);
130
130
  });
131
131
  if (aliasKeys.length) {
132
132
  var aliasKeyRegex = new RegExp("^".concat(aliasKeys.join('|')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balm-core",
3
- "version": "3.33.2",
3
+ "version": "3.33.3",
4
4
  "description": "BalmJS compiler core",
5
5
  "keywords": [
6
6
  "balm",
@@ -119,5 +119,5 @@
119
119
  "engines": {
120
120
  "node": ">=10.13.0"
121
121
  },
122
- "gitHead": "dfd512a732f560da942949874ad21999603b2228"
122
+ "gitHead": "c63f9845f35b36a095a5dea1c18baed22ee6409c"
123
123
  }
@@ -78,7 +78,7 @@ const gulpSass = (options) => transformObj((file, encoding, callback) => {
78
78
  opts.sourceMapContents = true;
79
79
  }
80
80
  if (!opts.importer) {
81
- const aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter((key) => /^@\w+/.test(key));
81
+ const aliasKeys = Object.keys(BalmJS.config.scripts.alias).filter((key) => /^@[a-z0-9-]{1,213}/.test(key));
82
82
  if (aliasKeys.length) {
83
83
  const aliasKeyRegex = new RegExp(`^${aliasKeys.join('|')}`);
84
84
  opts.importer = [