corexxx 1.0.67 → 1.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dformat.js CHANGED
@@ -5,7 +5,7 @@ var dformat;
5
5
  (function (dformat) {
6
6
  function formatMe(text, args) {
7
7
  for (var attr in args) {
8
- text = text.split("${" + attr + "}").join(args[attr]);
8
+ text = text.split("#{" + attr + "}").join(args[attr]);
9
9
  }
10
10
  return text;
11
11
  }
package/dist/test.js CHANGED
@@ -7,5 +7,5 @@ dlog_1.dlog.d("hello world");
7
7
  //dvalidation.validateExistOrThrow({ a: [] }, ["a"]);
8
8
  //console.log(dtime.isSameDay("2022-02-24T11:08:54.342Z", "2022-02-24T11:08:54.342Z"));
9
9
  console.log(_1.dtime.getIstTime(new Date().toISOString()));
10
- console.log(dformat_1.dformat.formatMe("Hello ${me} ${me}", { me: "dipankar" }));
10
+ console.log(dformat_1.dformat.formatMe("Hello #{me} #{me}", { me: "dipankar" }));
11
11
  //# sourceMappingURL=test.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "corexxx",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/dformat.ts CHANGED
@@ -2,7 +2,7 @@ import { TObject } from ".";
2
2
  export namespace dformat {
3
3
  export function formatMe(text: string, args: TObject): string {
4
4
  for (var attr in args) {
5
- text = text.split("${" + attr + "}").join(args[attr]);
5
+ text = text.split("#{" + attr + "}").join(args[attr]);
6
6
  }
7
7
  return text;
8
8
  }
package/src/test.ts CHANGED
@@ -6,4 +6,4 @@ dlog.d("hello world");
6
6
  //dvalidation.validateExistOrThrow({ a: [] }, ["a"]);
7
7
  //console.log(dtime.isSameDay("2022-02-24T11:08:54.342Z", "2022-02-24T11:08:54.342Z"));
8
8
  console.log(dtime.getIstTime(new Date().toISOString()));
9
- console.log(dformat.formatMe("Hello ${me} ${me}", { me: "dipankar" }));
9
+ console.log(dformat.formatMe("Hello #{me} #{me}", { me: "dipankar" }));