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

eta

Package Overview
Dependencies
Maintainers
1
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.10.0 to 1.10.1

dist/eta.cjs

17

dist/eta.es.js

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

import { existsSync, readFileSync } from 'fs';
import { resolve, dirname, extname } from 'path';
function setPrototypeOf(obj, proto) {

@@ -586,6 +589,2 @@ // eslint-disable-line @typescript-eslint/no-explicit-any

var fs = require('fs');
var path = require('path');
var readFileSync = fs.readFileSync;
var _BOM = /^\uFEFF/;

@@ -605,6 +604,6 @@ /* END TYPES */

function getWholeFilePath(name, parentfile, isDirectory) {
var includePath = path.resolve(isDirectory ? parentfile : path.dirname(parentfile), // returns directory the parent file is in
var includePath = resolve(isDirectory ? parentfile : dirname(parentfile), // returns directory the parent file is in
name // file
);
var ext = path.extname(name);
var ext = extname(name);
if (!ext) {

@@ -671,3 +670,3 @@ includePath += '.eta';

addPathToSearched(filePath);
return fs.existsSync(filePath);
return existsSync(filePath);
})) {

@@ -682,3 +681,3 @@ // If the above returned true, we know that the filePath was just set to a path

addPathToSearched(filePath);
if (fs.existsSync(filePath)) {
if (existsSync(filePath)) {
return filePath;

@@ -713,3 +712,3 @@ }

addPathToSearched(filePath);
if (fs.existsSync(filePath)) {
if (existsSync(filePath)) {
includePath = filePath;

@@ -716,0 +715,0 @@ }

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

export declare var fs: any;
export declare var path: any;
export declare var readFileSync: any;
export * as fs from 'fs';
export { readFileSync } from 'fs';
import * as path from 'path';
export { path };
//# sourceMappingURL=file-methods.d.ts.map

@@ -23,4 +23,4 @@ import type { EtaConfig } from './config';

*/
declare function readFile(filePath: string): any;
declare function readFile(filePath: string): string;
export { getPath, readFile };
//# sourceMappingURL=file-utils.d.ts.map
{
"name": "eta",
"version": "1.10.0",
"version": "1.10.1",
"description": "Lightweight, fast, and powerful embedded JS template engine",

@@ -16,8 +16,9 @@ "keywords": [

"homepage": "https://eta.js.org",
"main": "dist/eta.cjs.js",
"main": "dist/eta.cjs",
"browser": "dist/browser/eta.min.js",
"module": "dist/eta.es.js",
"type": "module",
"exports": {
"import": "./dist/eta.es.js",
"require": "./dist/eta.cjs.js",
"require": "./dist/eta.cjs",
"browser": "./dist/browser/eta.min.js"

@@ -127,3 +128,3 @@ },

"@types/jest": "^26.0.13",
"@types/node": "^14.10.1",
"@types/node": "^14.11.1",
"@typescript-eslint/eslint-plugin": "^4.1.0",

@@ -130,0 +131,0 @@ "@typescript-eslint/parser": "^4.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

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