pterm 0.0.12 → 0.0.14

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 +1 -0
  2. package/index.js +10 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -24,6 +24,7 @@ pterm version <type>
24
24
  - `terminal`: returns the pterm version
25
25
  - `pinokiod`: returns the pinokiod version
26
26
  - `pinokio`: returns the pinokio version
27
+ - `script`: returns the valid script version for the current client. used for including in `pinokio.js`
27
28
 
28
29
  ### example
29
30
 
package/index.js CHANGED
@@ -37,6 +37,16 @@ const util = new Util();
37
37
  }
38
38
  } catch (e) {
39
39
  }
40
+ } else if (app === "script") {
41
+ try {
42
+ let r = await fetch("http://localhost:42000/pinokio/version").then((res) => {
43
+ return res.json()
44
+ })
45
+ if (r.script) {
46
+ console.log(`${r.script}`)
47
+ }
48
+ } catch (e) {
49
+ }
40
50
  }
41
51
  }
42
52
  } else if (cmd === "filepicker") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pterm",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {