simple-file-templater 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/.DS_Store CHANGED
Binary file
package/dist/templater.js CHANGED
@@ -141,6 +141,6 @@ exports.fileToLines = fileToLines;
141
141
  // ╠══╣ ╠═ ║ ╠══╝ ╠═ ╠═╦╝ ╚══╗
142
142
  // ╩ ╩ ╚══╝ ╚══╝ ╩ ╚══╝ ╩ ╚ ═══╝
143
143
  function parseRegexpArray(arr) {
144
- return arr.map((conf) => typeof conf[0] === 'string' ? [new RegExp((0, topkat_utils_1.escapeRegexp)(conf[0])), conf[1]] : conf);
144
+ return arr.map((conf) => typeof conf[0] === 'string' ? [new RegExp((0, topkat_utils_1.escapeRegexp)(conf[0]), 'g'), conf[1]] : conf);
145
145
  }
146
146
  //# sourceMappingURL=templater.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templater.js","sourceRoot":"","sources":["../templater.ts"],"names":[],"mappings":";;;;;;AAEA,wDAAyB;AACzB,gDAAuB;AACvB,0DAA0B;AAE1B,+CAAkE;AAElE,wGAAwG;AACxG,SAAgB,SAAS;AACrB,oDAAoD;AACpD,IAAY;AACZ,oEAAoE;AACpE,EAAU;AACV;;;;EAIE;AACF,iBAAmE,EAAE;AACrE,wEAAwE;AACxE,qBAAuE,EAAE;AACzE,0IAA0I;AAC1I,WAAW,GAAG,EAAE;IAEhB,IAAI,CAAC;QACD,IAAA,6BAAc,EAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAA;QAElD,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAA;QAC7D,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CAAA;QAEjE,MAAM,WAAW,GAAG,EAAc,CAAA;QAElC,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,CAAA;QAClB,MAAM,mBAAmB,GAAG,kBAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,C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AO,KAAK;aACP,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;aACjF,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;KAC7E;IAAC,OAAO,GAAG,EAAE;QAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KAAE;AACzC,CAAC;AAlCD,kCAkCC;AAGD,sCAAsC;AACtC,sCAAsC;AACtC,sCAAsC;AAEtC,SAAS,gBAAgB,CAAC,GAAgC;IACtD,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,IAAA,2BAAY,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAU,CAAC,CAAC,CAAC,IAAwB,CAAC,CAAA;AACjJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-file-templater",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Simple templating system for file. Pattern replacer, file name replacer...",
5
5
  "main": "./dist/templater.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@
9
9
  "bump:minor": "node node_modules/bump-simple/bump-simple.js --minor",
10
10
  "bump:patch": "node node_modules/bump-simple/bump-simple.js --patch"
11
11
  },
12
- "author": "538ROMEO",
12
+ "author": "@topkat",
13
13
  "license": "ISC",
14
14
  "repository": {
15
15
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.10.1",
29
- "bump-simple": "^1.0.0"
29
+ "bump-simple": "^1.0.27"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
package/templater.ts CHANGED
@@ -137,5 +137,5 @@ export function fileToLines(
137
137
  // ╩ ╩ ╚══╝ ╚══╝ ╩ ╚══╝ ╩ ╚ ═══╝
138
138
 
139
139
  function parseRegexpArray(arr: [string | RegExp, string][]) {
140
- return arr.map((conf) => typeof conf[0] === 'string' ? [new RegExp(escapeRegexp(conf[0])), conf[1]] as const : conf as [RegExp, string])
140
+ return arr.map((conf) => typeof conf[0] === 'string' ? [new RegExp(escapeRegexp(conf[0]), 'g'), conf[1]] as const : conf as [RegExp, string])
141
141
  }
package/tsconfig.json CHANGED
@@ -16,15 +16,6 @@
16
16
  "moduleResolution": "node",
17
17
  "sourceMap": true,
18
18
  "outDir": "dist",
19
- // "baseUrl": "./",
20
- "paths": {
21
- "*": [
22
- "./node_modules/*"
23
- ],
24
- "src/*": [
25
- "./src/*"
26
- ]
27
- },
28
19
  "types": [
29
20
  "node"
30
21
  ]