pinokiod 8.1.1 → 8.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "8.1.1",
3
+ "version": "8.2.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -216,12 +216,10 @@ test('nested menus and shortcuts resolve relative paths from pinokio/', async ()
216
216
  { text: 'Start', href: 'start.js' },
217
217
  { text: 'Shell', run: 'echo ready' },
218
218
  { text: 'Stop', action: { method: 'stop', uri: 'start.js' } },
219
- { text: 'Absolute', action: { method: 'stop', uri: path.resolve('/abs', 'stop.js') } },
220
219
  { text: 'State', when: 'start.js', off: 'off' }
221
220
  ],
222
221
  shortcuts: [
223
- { action: { method: 'stop', uri: 'start.js' } },
224
- { action: { method: 'stop', uri: path.resolve('/abs', 'stop.js') } }
222
+ { action: { method: 'stop', uri: 'start.js' } }
225
223
  ]
226
224
  }
227
225
 
@@ -229,12 +227,10 @@ test('nested menus and shortcuts resolve relative paths from pinokio/', async ()
229
227
  assert.equal(config.menu[0].href, '/api/nested/pinokio/start.js')
230
228
  assert.equal(config.menu[1].cwd, launcher)
231
229
  assert.equal(config.menu[2].action.uri, '~/api/nested/pinokio/start.js')
232
- assert.equal(config.menu[3].action.uri, '~/api/nested/abs/stop.js')
233
230
  assert(checked.includes(path.resolve(launcher, 'start.js')))
234
231
 
235
232
  await server.renderShortcuts(kernel.path('api'), 'nested', config, [], 'pinokio')
236
233
  assert.equal(config.shortcuts[0].action.uri, '~/api/nested/pinokio/start.js')
237
- assert.equal(config.shortcuts[1].action.uri, '~/api/nested/abs/stop.js')
238
234
  })
239
235
  })
240
236