pinokiod 3.9.29 → 3.9.31

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/kernel/plugin.js CHANGED
@@ -4,7 +4,7 @@ class Plugin {
4
4
  this.kernel = kernel
5
5
  }
6
6
  async init() {
7
- if (this.kernel.bin.installed.conda.has("git")) {
7
+ if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
8
8
  // if ~/pinokio/prototype doesn't exist, clone
9
9
  let exists = await this.kernel.exists("plugin")
10
10
  if (!exists) {
@@ -22,7 +22,7 @@ class Plugin {
22
22
  }
23
23
  }
24
24
  async update() {
25
- if (this.kernel.bin.installed.conda.has("git")) {
25
+ if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
26
26
  let exists = await this.kernel.exists("plugin")
27
27
  if (!exists) {
28
28
  await this.kernel.exec({
@@ -9,7 +9,7 @@ class Proto {
9
9
  async init() {
10
10
  this.items = []
11
11
  this.kv = {}
12
- if (this.kernel.bin.installed.conda.has("git")) {
12
+ if (this.kernel.bin.installed && this.kernel.bin.installed.conda && this.kernel.bin.installed.conda.has("git")) {
13
13
 
14
14
  // if ~/pinokio/prototype doesn't exist, clone
15
15
  let exists = await this.kernel.exists("prototype")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.9.29",
3
+ "version": "3.9.31",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -232,7 +232,8 @@ document.addEventListener("DOMContentLoaded", async () => {
232
232
  conda: <%-JSON.stringify(conda)%>,
233
233
  <% } %>
234
234
  id: "<%=id%>",
235
- path: "<%=cwd%>",
235
+ //path: "<%=cwd%>",
236
+ path: "<%-JSON.stringify(cwd).slice(1, -1)%>",
236
237
  client: {
237
238
  cols: this.term.cols,
238
239
  rows: this.term.rows,