@marko/compiler 5.39.26 → 5.39.28

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.js CHANGED
@@ -68,10 +68,6 @@ function loadMarkoConfig(config) {
68
68
  markoConfig.stripTypes = isTranslatedOutput(markoConfig.output);
69
69
  }
70
70
 
71
- if (markoConfig.translator === undefined) {
72
- markoConfig.translator = globalConfig.translator;
73
- }
74
-
75
71
  return markoConfig;
76
72
  }
77
73
 
@@ -47,9 +47,7 @@ class Taglib {
47
47
  attribute.filePath = this.filePath;
48
48
 
49
49
  if (!attribute.pattern && !attribute.name) {
50
- throw new Error(
51
- "Invalid attribute: " + require("util").inspect(attribute)
52
- );
50
+ throw new Error("Invalid attribute: " + JSON.stringify(attribute));
53
51
  }
54
52
 
55
53
  this.attributes[attribute.key] = attribute;
@@ -1,7 +1,8 @@
1
1
  "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = _default;var _modules = _interopRequireDefault(require("../../modules"));
2
+ var _config = _interopRequireDefault(require("../config"));
2
3
  const cache = {};
3
4
 
4
- function _default(requested) {
5
+ function _default(requested = _config.default.translator) {
5
6
  if (typeof requested === "string") {
6
7
  return (
7
8
  cache[requested] || (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/compiler",
3
- "version": "5.39.26",
3
+ "version": "5.39.28",
4
4
  "description": "Marko template to JS compiler.",
5
5
  "keywords": [
6
6
  "babel",
@@ -87,7 +87,7 @@
87
87
  "source-map-support": "^0.5.21"
88
88
  },
89
89
  "devDependencies": {
90
- "marko": "^5.37.37"
90
+ "marko": "^5.37.40"
91
91
  },
92
92
  "engines": {
93
93
  "node": "18 || 20 || >=22"