- Added Predis library for Redis connection (no PHP extension required) - Server-side SMS code generation and storage in Redis - Rate limiting and brute-force protection - Integration with n8n webhook for SMS sending - Environment variables moved to .env file - Fixed policy verification endpoint - Added file-based fallback if Redis unavailable
26 lines
539 B
JavaScript
26 lines
539 B
JavaScript
import typescript from "rollup-plugin-typescript2";
|
|
import pkg from "./package.json";
|
|
import { readFileSync } from "fs";
|
|
export default {
|
|
input: "src/index.ts",
|
|
output: {
|
|
file: pkg.main,
|
|
format: "iife",
|
|
name: "heic2any",
|
|
banner: () =>
|
|
readFileSync("./src/libheif.js", { encoding: "utf8" }) + "\n\n",
|
|
globals: {
|
|
"./libheif": "libheif"
|
|
}
|
|
},
|
|
external: [
|
|
...Object.keys(pkg.dependencies || {}),
|
|
...Object.keys(pkg.peerDependencies || {})
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
typescript: require("typescript")
|
|
})
|
|
]
|
|
};
|