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

@marko/compiler

Package Overview
Dependencies
Maintainers
6
Versions
301
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.36.2 to 5.37.0

1

config.d.ts

@@ -27,2 +27,3 @@ declare const Config: {

optimize?: boolean;
optimizedRegistryIds?: Map<string, string>;
cache?: Map<unknown, unknown>;

@@ -29,0 +30,0 @@ hot?: boolean;

2

dist/babel-plugin/index.js

@@ -161,3 +161,3 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;exports.getMarkoFile = getMarkoFile;var _crypto = require("crypto");

const canCache = !(isSource || isMigrate);
const id = (0, _babelUtils.getTemplateId)(markoOpts.optimize, filename);
const id = (0, _babelUtils.getTemplateId)(markoOpts, filename);
const contentHash = canCache && (0, _crypto.createHash)("MD5").update(code).digest("hex");

@@ -164,0 +164,0 @@ const cacheKey = canCache && (0, _crypto.createHash)("MD5").update(id).digest("hex");

@@ -170,2 +170,9 @@ "use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;var _fs = _interopRequireDefault(require("fs"));

var _config = _interopRequireDefault(require("./taglib/config"));const config = { // The default output mode for compiled templates

@@ -207,2 +214,6 @@ output: "html", // Override the runtimeid used when calling `marko/components.init` in the `hydrate` output.

*/optimize: undefined, /**
* If `optimize` is enabled you can provide a Map which the compiler will
* use to store shorter registry/template id's in. This can only be used
* if the same `optimizedRegistryIds` are used for both server and client compilations.
*/optimizedRegistryIds: undefined, /**
* This option should be set if `hydrate` output is specified.

@@ -209,0 +220,0 @@ * Maps a virtual dependency to a resolved file which can be implemented

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

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

"@luxass/strip-json-comments": "^1.2.0",
"@marko/babel-utils": "^6.4.3",
"@marko/babel-utils": "^6.5.0",
"complain": "^1.6.0",

@@ -72,0 +72,0 @@ "he": "^1.2.0",

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