@puya/ts 1.1.0 → 1.1.1

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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -119,3 +119,16 @@ if (result.success) {
119
119
  console.error('Failed to generate timestamp:', result.err);
120
120
  }
121
121
  ```
122
+
123
+ ### Variables
124
+
125
+ You can pass this variables:
126
+ ```javascript
127
+ locale: "en", // or "fa"
128
+ outputFileName: "output.json", //file will created at current dir
129
+ templatePath: "", //template file path
130
+ format: "YYYYMMDDHHmm", //timestamp format
131
+ inlineTemplate: "", //inline template (without path)
132
+ skipOutput: false
133
+ ```
134
+
package/index.js CHANGED
@@ -2,4 +2,4 @@ const { ts } = require('./Timestamper')
2
2
  const cli = require('./TimestamperCLI');
3
3
 
4
4
  module.exports.Timestamper = ts;
5
- module.exports.TimestamperCLI = TimestamperCLI;
5
+ module.exports.TimestamperCLI = cli;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puya/ts",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "This library provides timestamp and supports custom templates for its output file.",
5
5
  "main": "index.js",
6
6
  "bin": {