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

@marko/compiler

Package Overview
Dependencies
Maintainers
7
Versions
315
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marko/compiler - npm Package Compare versions

Comparing version 5.39.1 to 5.39.2

52

babel-utils.d.ts

@@ -249,10 +249,6 @@ import type { Config, types as t } from "@marko/compiler";

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
sourceOffset?: null | number,
): T;
export function parseStatements<T extends t.Statement[]>(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
sourceOffset?: number,
): T;

@@ -262,10 +258,6 @@ export function parseExpression<T extends t.Expression>(

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
sourceOffset?: null | number,
): T;
export function parseExpression<T extends t.Expression>(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
sourceOffset?: number,
): T;

@@ -275,9 +267,5 @@ export function parseParams(

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
): t.Function["params"];
export function parseParams(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
): t.Function["params"];

@@ -287,9 +275,5 @@ export function parseArgs(

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
): t.CallExpression["arguments"];
export function parseArgs(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
): t.CallExpression["arguments"];

@@ -299,9 +283,5 @@ export function parseVar(

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
): t.VariableDeclarator["id"];
export function parseVar(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
): t.VariableDeclarator["id"];

@@ -311,9 +291,5 @@ export function parseTemplateLiteral(

str: string,
sourceStart?: null | number,
sourceEnd?: null | number,
): t.TemplateLiteral;
export function parseTemplateLiteral(
file: t.BabelFile,
str: string,
sourceStart: number,
sourceEnd: number,
): t.TemplateLiteral;

@@ -320,0 +296,0 @@ export function resolveRelativePath(file: t.BabelFile, request: string): string;

@@ -78,2 +78,9 @@ "use strict";exports.__esModule = true;exports.getEnd = getEnd;exports.getLoc = getLoc;exports.getLocRange = getLocRange;exports.getStart = getStart;exports.withLoc = withLoc;const LINE_INDEX_KEY = Symbol();

function findLoc(lineIndexes, startLine, index) {
if (index <= 0) {
return {
line: 1,
column: 0
};
}
const endLine = lineIndexes.length - 1;

@@ -80,0 +87,0 @@ let max = endLine;

{
"name": "@marko/compiler",
"version": "5.39.1",
"version": "5.39.2",
"description": "Marko template to JS compiler.",

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

"devDependencies": {
"marko": "^5.37.1"
"marko": "^5.37.2"
},

@@ -92,0 +92,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