Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@marko/babel-utils

Package Overview
Dependencies
Maintainers
6
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marko/babel-utils - npm Package Compare versions

Comparing version 6.5.7 to 6.5.8

14

dist/parse.js

@@ -5,2 +5,3 @@ "use strict";exports.__esModule = true;exports.parseArgs = parseArgs;exports.parseExpression = parseExpression;exports.parseParams = parseParams;exports.parseStatements = parseStatements;exports.parseTemplateLiteral = parseTemplateLiteral;exports.parseTypeArgs = parseTypeArgs;exports.parseTypeParams = parseTypeParams;exports.parseVar = parseVar;var babelParser = _interopRequireWildcard(require("@babel/parser"));

var _loc = require("./loc");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;}
const CODE_AS_WHITE_SPACE_KEY = Symbol();

@@ -124,5 +125,9 @@ function parseStatements(

if (typeof sourceStart === "number") {
const startLoc = (0, _loc.getLoc)(file, sourceStart - (sourceOffset || 0));
parserOpts.startLine = startLoc.line;
parserOpts.startColumn = startLoc.column;
const whitespace =
file.metadata.marko[CODE_AS_WHITE_SPACE_KEY] || (
file.metadata.marko[CODE_AS_WHITE_SPACE_KEY] = file.code.replace(
/[^\s]/g,
" "
));
code = whitespace.slice(0, sourceStart - (sourceOffset || 0)) + str;

@@ -147,5 +152,2 @@ try {

}
} finally {
parserOpts.startLine = 1;
parserOpts.startColumn = 0;
}

@@ -152,0 +154,0 @@ } else {

{
"name": "@marko/babel-utils",
"version": "6.5.7",
"version": "6.5.8",
"description": "Utilities for use with Marko babel plugins.",

@@ -31,3 +31,3 @@ "keywords": [

"dependencies": {
"@babel/runtime": "^7.25.0",
"@babel/runtime": "^7.26.0",
"jsesc": "^3.0.2",

@@ -37,3 +37,3 @@ "relative-import-path": "^1.0.0"

"devDependencies": {
"@marko/compiler": "^5.37.15"
"@marko/compiler": "^5.37.20"
},

@@ -40,0 +40,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc