esbuild-plugin-filelastmodified
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -5,2 +5,4 @@ import fs from "fs"; | ||
const find = new RegExp(identifier, "g"); | ||
if (!args.path.startsWith(".")) | ||
return; | ||
const source = (await fs.promises.readFile(args.path)).toString("utf-8"); | ||
@@ -7,0 +9,0 @@ if (!source.match(find)) |
@@ -31,2 +31,4 @@ var __create = Object.create; | ||
const find = new RegExp(identifier, "g"); | ||
if (!args.path.startsWith(".")) | ||
return; | ||
const source = (await import_fs.default.promises.readFile(args.path)).toString("utf-8"); | ||
@@ -33,0 +35,0 @@ if (!source.match(find)) |
{ | ||
"name": "esbuild-plugin-filelastmodified", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A esbuild plugin to replace __fileLastModified__ with the actual time the file has been modified.", | ||
@@ -22,4 +22,5 @@ "main": "dist/index.js", | ||
"mocha": "^9.1.2", | ||
"normalize.css": "^8.0.1", | ||
"typescript": "^4.4.3" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6929
7
5
97