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

edge.js

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge.js - npm Package Compare versions

Comparing version 6.0.0-5 to 6.0.0-6

build/main-6dfe5def.d.ts

7

build/index.d.ts

@@ -1,3 +0,2 @@

import { E as EdgeGlobals } from './main-454013ec.js';
export { a as Edge } from './main-454013ec.js';
import { E as EdgeGlobals, a as Edge } from './main-6dfe5def.js';
import 'edge-parser';

@@ -13,2 +12,4 @@ import 'edge-lexer/types';

export { edgeGlobals };
declare const edge: Edge;
export { Edge, edge as default, edgeGlobals };

@@ -1438,4 +1438,4 @@ import {

#components = {};
constructor(edge) {
this.#edge = edge;
constructor(edge2) {
this.#edge = edge2;
this.#claimTags();

@@ -1492,5 +1492,5 @@ this.#transformTags();

var superCharged;
var pluginSuperCharged = (edge, firstRun) => {
var pluginSuperCharged = (edge2, firstRun) => {
if (firstRun) {
superCharged = new SuperChargedComponents(edge);
superCharged = new SuperChargedComponents(edge2);
}

@@ -1526,16 +1526,2 @@ superCharged.refreshComponents();

/**
* The loader to load templates. A loader can read and return
* templates from anywhere. The default loader reads files
* from the disk
*/
loader;
/**
* The underlying compiler in use
*/
compiler;
/**
* The underlying compiler in use
*/
asyncCompiler;
/**
* Globals are shared with all rendered templates

@@ -1550,3 +1536,17 @@ */

constructor(options = {}) {
this.loader = options.loader || new Loader();
this.configure(options);
Object.keys(main_exports).forEach((name) => {
this.registerTag(main_exports[name]);
});
this.use(pluginSuperCharged, { recurring: !options.cache });
}
/**
* Re-configure an existing edge instance
*/
configure(options) {
if (options.loader) {
this.loader = options.loader;
} else if (!this.loader) {
this.loader = new Loader();
}
this.compiler = new Compiler(this.loader, this.tags, this.processor, {

@@ -1560,6 +1560,2 @@ cache: !!options.cache,

});
Object.keys(main_exports).forEach((name) => {
this.registerTag(main_exports[name]);
});
this.use(pluginSuperCharged, { recurring: !options.cache });
}

@@ -1758,5 +1754,10 @@ /**

};
// index.ts
var edge = Edge.create();
var edge_default = edge;
export {
Edge,
edge_default as default,
edgeGlobals
};

@@ -1,2 +0,2 @@

import { P as PluginFn } from '../../main-454013ec.js';
import { P as PluginFn } from '../../main-6dfe5def.js';
import 'edge-parser';

@@ -3,0 +3,0 @@ import 'edge-lexer/types';

export * from 'edge-lexer/types';
import 'edge-parser';
export { AcornLoc, ClaimTagFn, MustacheTransformer, OnLineFn, ParserOptions, ParserTagDefinitionContract, TagTransformer } from 'edge-parser/types';
export { e as CacheManagerContract, d as CompiledTemplate, f as CompilerOptions, C as ComponentsTree, j as EdgeBufferContract, E as EdgeGlobals, g as EdgeOptions, b as LoaderContract, L as LoaderTemplate, h as ParserContract, P as PluginFn, T as TagContract, i as TagTokenContract, c as TagsContract } from '../main-454013ec.js';
export { e as CacheManagerContract, d as CompiledTemplate, f as CompilerOptions, C as ComponentsTree, j as EdgeBufferContract, E as EdgeGlobals, g as EdgeOptions, b as LoaderContract, L as LoaderTemplate, h as ParserContract, P as PluginFn, T as TagContract, i as TagTokenContract, c as TagsContract } from '../main-6dfe5def.js';
import '@poppinss/macroable';
{
"name": "edge.js",
"description": "Template engine",
"version": "6.0.0-5",
"version": "6.0.0-6",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=18.16.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