@marko/compiler
Advanced tools
Comparing version 5.37.4 to 5.37.5
@@ -1,5 +0,4 @@ | ||
/* eslint-disable import/export, import/no-unresolved */ | ||
import { Scope } from "./dist/traverse"; | ||
export * from "./dist/traverse"; | ||
export * from "./dist/types"; | ||
export * from "./dist/traverse"; | ||
export { Scope }; | ||
@@ -6,0 +5,0 @@ export const MARKO_TYPES: string[]; |
"use strict";exports.__esModule = true;exports.MarkoFile = void 0;var _core = require("@babel/core"); | ||
var _buildCodeFrame = require("../util/build-code-frame"); | ||
@@ -3,0 +4,0 @@ |
@@ -1,5 +0,6 @@ | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _crypto = require("crypto"); | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _traverse = require("@babel/traverse"); | ||
var _babelUtils = require("@marko/babel-utils"); | ||
var _crypto = require("crypto"); | ||
var _path = _interopRequireDefault(require("path")); | ||
var _traverse = require("@babel/traverse"); | ||
var _babelUtils = require("@marko/babel-utils"); | ||
var t = _interopRequireWildcard(require("../babel-types")); | ||
@@ -282,2 +283,5 @@ var _taglib = require("../taglib"); | ||
rootTransformers.push(_transform.visitor); | ||
if (translator.transform) { | ||
rootTransformers.push(translator.transform); | ||
} | ||
file.___compileStage = "transform"; | ||
@@ -284,0 +288,0 @@ traverseAll(file, rootTransformers); |
@@ -13,2 +13,3 @@ "use strict";exports.__esModule = true;exports.parseMarko = parseMarko;var _babelUtils = require("@marko/babel-utils"); | ||
var _htmljsParser = require("htmljs-parser"); | ||
var t = _interopRequireWildcard(require("../babel-types"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} | ||
@@ -15,0 +16,0 @@ |
"use strict";exports.__esModule = true;exports.visitor = void 0;var _babelUtils = require("@marko/babel-utils"); | ||
var t = _interopRequireWildcard(require("../../babel-types")); | ||
@@ -3,0 +4,0 @@ var _pluginHooks = require("../util/plugin-hooks");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} |
"use strict";exports.__esModule = true;exports.visitor = void 0;var _babelUtils = require("@marko/babel-utils"); | ||
var t = _interopRequireWildcard(require("../../babel-types")); | ||
@@ -3,0 +4,0 @@ var _pluginHooks = require("../util/plugin-hooks");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} |
"use strict";exports.__esModule = true;var _exportNames = { MARKO_TYPES: true };exports.MARKO_TYPES = void 0;require("./types/patch"); | ||
require("./traverse/patch"); | ||
require("./generator/patch"); | ||
var _types = require("@babel/types");Object.keys(_types).forEach(function (key) {if (key === "default" || key === "__esModule") return;if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;if (key in exports && exports[key] === _types[key]) return;exports[key] = _types[key];}); | ||
var _definitions = require("./types/definitions");exports.MARKO_TYPES = _definitions.MARKO_TYPES; | ||
var _definitions = require("./types/definitions");exports.MARKO_TYPES = _definitions.MARKO_TYPES; | ||
var _types = require("@babel/types");Object.keys(_types).forEach(function (key) {if (key === "default" || key === "__esModule") return;if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;if (key in exports && exports[key] === _types[key]) return;exports[key] = _types[key];}); |
@@ -5,2 +5,3 @@ "use strict";require("../types/patch"); | ||
var t = _interopRequireWildcard(require("@babel/types")); | ||
var _definitions = require("../types/definitions");function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} | ||
@@ -7,0 +8,0 @@ |
@@ -7,2 +7,3 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
var _validate = _interopRequireDefault(require("@babel/types/lib/validators/validate")); | ||
var _definitions = _interopRequireWildcard(require("./definitions"));function _getRequireWildcardCache(e) {if ("function" != typeof WeakMap) return null;var r = new WeakMap(),t = new WeakMap();return (_getRequireWildcardCache = function (e) {return e ? t : r;})(e);}function _interopRequireWildcard(e, r) {if (!r && e && e.__esModule) return e;if (null === e || "object" != typeof e && "function" != typeof e) return { default: e };var t = _getRequireWildcardCache(r);if (t && t.has(e)) return t.get(e);var n = { __proto__: null },a = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];}return n.default = e, t && t.set(e, n), n;} /* eslint-disable no-import-assign */ | ||
@@ -104,3 +105,3 @@ | ||
// (assume all enumerable properties are own) | ||
// eslint-disable-next-line guard-for-in | ||
for (const key in node) { | ||
@@ -107,0 +108,0 @@ (0, _validate.default)(node, key, node[key]); |
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports._clearDefaults = _clearDefaults;exports.compile = compile;exports.compileFile = compileFile;exports.compileFileSync = compileFileSync;exports.compileSync = compileSync;exports.configure = configure;exports.getRuntimeEntryFiles = getRuntimeEntryFiles;exports.types = exports.taglib = void 0;var _types = _interopRequireWildcard(require("./babel-types"));exports.types = _types; | ||
var _path = _interopRequireDefault(require("path")); | ||
var babel = _interopRequireWildcard(require("@babel/core")); | ||
@@ -8,2 +7,4 @@ var _pluginSyntaxTypescript = _interopRequireDefault(require("@babel/plugin-syntax-typescript")); | ||
var _babelUtils = require("@marko/babel-utils"); | ||
var _path = _interopRequireDefault(require("path")); | ||
var _babelPlugin = _interopRequireDefault(require("./babel-plugin")); | ||
@@ -10,0 +11,0 @@ var _config = _interopRequireDefault(require("./config")); |
@@ -37,3 +37,2 @@ "use strict"; | ||
hot: process.env.BROWSER_REFRESH_URL !== undefined, | ||
// eslint-disable-next-line no-constant-condition | ||
sourceMaps: isDev ? "both" : false | ||
@@ -40,0 +39,0 @@ }, |
@@ -83,3 +83,3 @@ "use strict"; | ||
let curDirname = dirname; | ||
// eslint-disable-next-line no-constant-condition | ||
while (true) { | ||
@@ -86,0 +86,0 @@ if (!excludedDirs[curDirname]) { |
@@ -1,3 +0,4 @@ | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports._loader = exports._finder = void 0;exports.buildLookup = buildLookup;exports.clearCaches = clearCaches;exports.excludePackage = exports.excludeDir = void 0;exports.register = register;exports.resolveOptionalTaglibs = resolveOptionalTaglibs;var _path = _interopRequireDefault(require("path")); | ||
var _lassoPackageRoot = require("lasso-package-root"); | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports._loader = exports._finder = void 0;exports.buildLookup = buildLookup;exports.clearCaches = clearCaches;exports.excludePackage = exports.excludeDir = void 0;exports.register = register;exports.resolveOptionalTaglibs = resolveOptionalTaglibs;var _lassoPackageRoot = require("lasso-package-root"); | ||
var _path = _interopRequireDefault(require("path")); | ||
var _modules = _interopRequireDefault(require("../../modules")); | ||
@@ -4,0 +5,0 @@ var _tryLoadTranslator = _interopRequireDefault(require("../util/try-load-translator")); |
@@ -1,4 +0,5 @@ | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.buildCodeFrameError = buildCodeFrameError;var _path = _interopRequireDefault(require("path")); | ||
var _codeFrame = require("@babel/code-frame"); | ||
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.buildCodeFrameError = buildCodeFrameError;var _codeFrame = require("@babel/code-frame"); | ||
var _kleur = _interopRequireDefault(require("kleur")); | ||
var _path = _interopRequireDefault(require("path")); | ||
var _stripAnsi = require("./strip-ansi"); | ||
@@ -100,6 +101,6 @@ const CWD = process.cwd(); | ||
`:${_kleur.default.yellow(loc.start.line)}:${_kleur.default.yellow(loc.start.column + 1)}` : | ||
"" | ||
}`; | ||
""}`; | ||
} | ||
function noop() {} |
import { Diagnostic, TaglibLookup } from "@marko/babel-utils"; | ||
import { SourceMap } from "magic-string"; | ||
import * as types from "./babel-types"; | ||
@@ -4,0 +5,0 @@ export { types }; |
{ | ||
"name": "@marko/compiler", | ||
"version": "5.37.4", | ||
"version": "5.37.5", | ||
"description": "Marko template to JS compiler.", | ||
@@ -58,14 +58,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/code-frame": "^7.24.2", | ||
"@babel/core": "^7.24.3", | ||
"@babel/generator": "^7.24.1", | ||
"@babel/parser": "^7.24.1", | ||
"@babel/plugin-syntax-typescript": "^7.24.1", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.1", | ||
"@babel/plugin-transform-typescript": "^7.24.1", | ||
"@babel/runtime": "^7.24.1", | ||
"@babel/traverse": "^7.24.1", | ||
"@babel/types": "^7.24.0", | ||
"@luxass/strip-json-comments": "^1.2.0", | ||
"@marko/babel-utils": "^6.5.1", | ||
"@babel/code-frame": "^7.24.7", | ||
"@babel/core": "^7.25.2", | ||
"@babel/generator": "^7.25.0", | ||
"@babel/parser": "^7.25.3", | ||
"@babel/plugin-syntax-typescript": "^7.24.7", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.8", | ||
"@babel/plugin-transform-typescript": "^7.25.2", | ||
"@babel/runtime": "^7.25.0", | ||
"@babel/traverse": "^7.25.3", | ||
"@babel/types": "^7.25.2", | ||
"@luxass/strip-json-comments": "^1.3.2", | ||
"@marko/babel-utils": "^6.5.2", | ||
"complain": "^1.6.0", | ||
@@ -84,3 +84,3 @@ "he": "^1.2.0", | ||
"devDependencies": { | ||
"@marko/translator-default": "^6.0.5" | ||
"@marko/translator-default": "^6.0.7" | ||
}, | ||
@@ -87,0 +87,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
462393
10788
+ Added@babel/traverse@7.26.3(transitive)
+ Addedelectron-to-chromium@1.5.69(transitive)
- Removed@babel/traverse@7.26.4(transitive)
- Removedelectron-to-chromium@1.5.71(transitive)
Updated@babel/code-frame@^7.24.7
Updated@babel/core@^7.25.2
Updated@babel/generator@^7.25.0
Updated@babel/parser@^7.25.3
Updated@babel/runtime@^7.25.0
Updated@babel/traverse@^7.25.3
Updated@babel/types@^7.25.2
Updated@marko/babel-utils@^6.5.2