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

eta

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eta - npm Package Compare versions

Comparing version 1.13.0 to 1.14.0

dist/browser.min.umd.js

12

dist/types/browser.d.ts

@@ -1,7 +0,7 @@

export { default as compileToString } from './compile-string';
export { default as compile } from './compile';
export { default as parse } from './parse';
export { default as render, renderAsync } from './render';
export { templates } from './containers';
export { config, config as defaultConfig, getConfig, configure } from './config';
export { default as compileToString } from "./compile-string.js";
export { default as compile } from "./compile.js";
export { default as parse } from "./parse.js";
export { default as render, renderAsync } from "./render.js";
export { templates } from "./containers.js";
export { config, config as defaultConfig, getConfig, configure } from "./config.js";
//# sourceMappingURL=browser.d.ts.map

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

import type { EtaConfig } from './config';
import type { EtaConfig } from "./config.js";
/**

@@ -3,0 +3,0 @@ * Compiles a template string to a function string. Most often users just use `compile()`, which calls `compileToString` and creates a new function using the result

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

import type { EtaConfig, PartialConfig } from './config';
import type { CallbackFn } from './file-handlers';
import type { EtaConfig, PartialConfig } from "./config.js";
import type { CallbackFn } from "./file-handlers.js";
export type TemplateFunction = (data: object, config: EtaConfig, cb?: CallbackFn) => string;

@@ -4,0 +4,0 @@ /**

@@ -1,4 +0,4 @@

import type { TemplateFunction } from './compile';
import type { Cacher } from './storage';
type trimConfig = 'nl' | 'slurp' | false;
import type { TemplateFunction } from "./compile.js";
import type { Cacher } from "./storage.js";
type trimConfig = "nl" | "slurp" | false;
export interface EtaConfig {

@@ -55,3 +55,3 @@ /** Whether or not to automatically XML-escape interpolations. Default true */

/** Whether or not to cache templates if `name` or `filename` is passed: duplicate of `cache` */
'view cache'?: boolean;
"view cache"?: boolean;
/** Directory or directories that contain templates */

@@ -58,0 +58,0 @@ views?: string | Array<string>;

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

import { Cacher } from './storage';
import type { TemplateFunction } from './compile';
import { Cacher } from "./storage.js";
import type { TemplateFunction } from "./compile.js";
/**

@@ -4,0 +4,0 @@ * Eta's template storage

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

import type { EtaConfig, PartialConfig } from './config';
import type { TemplateFunction } from './compile';
import type { EtaConfig, PartialConfig } from "./config.js";
import type { TemplateFunction } from "./compile.js";
export type CallbackFn = (err: Error | null, str?: string) => void;

@@ -4,0 +4,0 @@ interface DataObj {

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

import type { EtaConfig } from './config';
import type { EtaConfig } from "./config.js";
interface GenericData {

@@ -3,0 +3,0 @@ [index: string]: any;

@@ -1,4 +0,4 @@

export { readFileSync, existsSync } from 'fs';
import * as path from 'path';
export { readFileSync, existsSync } from "fs";
import * as path from "path";
export { path };
//# sourceMappingURL=file-methods.d.ts.map

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

import type { EtaConfig } from './config';
import type { EtaConfig } from "./config.js";
/**

@@ -3,0 +3,0 @@ * Get the absolute path to an included template

@@ -1,8 +0,8 @@

export { loadFile, renderFile, renderFileAsync, renderFile as __express } from './file-handlers';
export { default as compileToString } from './compile-string';
export { default as compile } from './compile';
export { default as parse } from './parse';
export { default as render, renderAsync } from './render';
export { templates } from './containers';
export { config, config as defaultConfig, getConfig, configure } from './config';
export { loadFile, renderFile, renderFileAsync, renderFile as __express } from "./file-handlers.js";
export { default as compileToString } from "./compile-string.js";
export { default as compile } from "./compile.js";
export { default as parse } from "./parse.js";
export { default as render, renderAsync } from "./render.js";
export { templates } from "./containers.js";
export { config, config as defaultConfig, getConfig, configure } from "./config.js";
//# sourceMappingURL=index.d.ts.map

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

import type { EtaConfig } from './config';
export type TagType = 'r' | 'e' | 'i' | '';
import type { EtaConfig } from "./config.js";
export type TagType = "r" | "e" | "i" | "";
export interface TemplateObject {

@@ -4,0 +4,0 @@ t: TagType;

@@ -1,4 +0,4 @@

import type { PartialConfig, PartialAsyncConfig } from './config';
import type { TemplateFunction } from './compile';
import type { CallbackFn } from './file-handlers';
import type { PartialConfig, PartialAsyncConfig } from "./config.js";
import type { TemplateFunction } from "./compile.js";
import type { CallbackFn } from "./file-handlers.js";
/**

@@ -5,0 +5,0 @@ * Render a template

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

import type { EtaConfig } from './config';
import type { EtaConfig } from "./config.js";
export declare function hasOwnProp(obj: object, prop: string): boolean;

@@ -3,0 +3,0 @@ export declare function copyProps<T>(toObj: T, fromObj: T): T;

{
"name": "eta",
"version": "1.13.0",
"version": "1.14.0",
"description": "Lightweight, fast, and powerful embedded JS template engine",

@@ -16,16 +16,18 @@ "keywords": [

"homepage": "https://eta.js.org",
"main": "dist/eta.cjs",
"browser": "dist/browser/eta.min.js",
"module": "dist/eta.es.js",
"type": "module",
"main": "./dist/eta.umd.js",
"module": "./dist/eta.module.js",
"umd:main": "./dist/eta.umd.js",
"unpkg": "./dist/browser.min.umd.js",
"types": "./dist/types/eta.d.ts",
"source": "src/index.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"import": "./dist/eta.es.js",
"require": "./dist/eta.cjs",
"browser": "./dist/browser/eta.min.js"
".": {
"types": "./dist/types/eta.d.ts",
"browser": "./dist/browser.min.umd.js",
"require": "./dist/eta.umd.js",
"import": "./dist/eta.module.js",
"default": "./dist/eta.umd.js"
}
},
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"jsdelivr": "dist/browser/eta.min.js",
"unpkg": "dist/browser/eta.min.js",
"sideEffects": false,

@@ -49,3 +51,5 @@ "files": [

"scripts": {
"build": "denoify && rollup -c rollup.config.ts && rimraf docs && typedoc --tsconfig tsconfig.json src && deno fmt deno_dist/*.ts",
"build:node": "microbundle src/index.ts --target node --format esm,umd",
"build:browser": "microbundle src/browser.ts --target web --format umd --output dist/browser.min.js",
"build": "denoify && npm run build:node && npm run build:browser && rimraf docs && typedoc --tsconfig tsconfig.json src && deno fmt deno_dist/*.ts",
"commit": "git-cz",

@@ -59,3 +63,3 @@ "deploy-docs": "ts-node tools/gh-pages-publish",

"size": "size-limit",
"start": "rollup -c rollup.config.ts -w",
"start": "microbundle watch",
"test": "jest --coverage && npm run test:deno && npm run size",

@@ -69,3 +73,3 @@ "test:deno": "deno test test/deno/*.spec.ts --allow-read --unstable",

{
"path": "dist/browser/eta.min.js",
"path": "dist/browser.min.umd.js",
"limit": "3 KB"

@@ -88,2 +92,5 @@ }

},
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testEnvironment": "node",

@@ -131,9 +138,7 @@ "testRegex": "\\/test\\/(?!deno\\/).*(\\.spec\\.ts)$",

"@commitlint/config-conventional": "^17.3.0",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@size-limit/preset-small-lib": "^8.1.0",
"@types/jest": "^26.0.13",
"@types/node": "^14.11.1",
"@typescript-eslint/eslint-plugin": "5",
"@typescript-eslint/parser": "^5.46.1",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"commitizen": "^4.2.1",

@@ -143,20 +148,15 @@ "coveralls": "^3.1.0",

"cz-conventional-changelog": "^3.3.0",
"denoify": "^0.6.3",
"eslint": "^8.29.0",
"eslint-config-eta-dev": "^1.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "2",
"eslint-plugin-node": "11",
"eslint-plugin-promise": "4",
"eslint-plugin-standard": "4",
"denoify": "^1.4.5",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"husky": "^4.3.0",
"jest": "^29.3.1",
"lint-staged": "^10.3.0",
"microbundle": "^0.15.1",
"np": "^6.5.0",
"prettier": "2.1.1",
"prettier": "^2.8.3",
"rimraf": "^3.0.2",
"rollup": "^2.26.11",
"rollup-plugin-prettier": "^2.1.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.27.2",
"shelljs": "^0.8.4",

@@ -163,0 +163,0 @@ "size-limit": "^8.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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