Socket
Socket
Sign inDemoInstall

@kano/desktop-shell

Package Overview
Dependencies
Maintainers
8
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kano/desktop-shell - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

0

lib/about/preload.js

@@ -0,0 +0,0 @@ const { remote, ipcRenderer } = require('electron');

@@ -0,0 +0,0 @@ const { protocol } = require('electron');

@@ -0,0 +0,0 @@ const { app, shell, Menu } = require('electron');

@@ -0,0 +0,0 @@ const {

13

lib/spa-stream-protocol-handler.js

@@ -9,3 +9,7 @@ const url = require('url');

const lastPart = parts[parts.length - 1];
return lastPart.split('.').pop();
const dotLocation = lastPart.indexOf('.');
if (dotLocation === -1) {
return null;
}
return lastPart.slice(dotLocation + 1);
}

@@ -26,6 +30,9 @@

// If the path contains an extension, it is a request for a file
const isFile = extension !== '';
const isFile = extension !== null;
// Replace the path with the fallback file if the request is not for a file
const filename = isFile ? u.pathname : fallback;
extension = getExtension(filename);
// Re-read extension is falling back to default file
if (!isFile) {
extension = getExtension(filename);
}
const file = path.normalize(`${authorityRoot}/${filename}`);

@@ -32,0 +39,0 @@ const mimeType = mime.lookup(extension);

{
"name": "@kano/desktop-shell",
"version": "1.0.7",
"version": "1.0.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,0 +0,0 @@ # Kano Desktop Shell

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc