New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

desktop-deep-link

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

desktop-deep-link - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [1.1.8](https://github.com/friedrith/desktop-deep-link/compare/v1.1.7...v1.1.8) (2022-01-02)
### [1.1.7](https://github.com/friedrith/desktop-deep-link/compare/v1.1.6...v1.1.7) (2022-01-02)

@@ -7,0 +9,0 @@

8

dist/tsc/index.js

@@ -1,2 +0,4 @@

import { modules } from './modules';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const modules_1 = require("./modules");
const defaultModule = {

@@ -10,8 +12,8 @@ match: () => true,

};
export default (uri) => {
exports.default = (uri) => {
var _a;
const cleanURI = normalize(uri);
return (_a = [...modules, defaultModule]
return (_a = [...modules_1.modules, defaultModule]
.find((m) => m.match(cleanURI))) === null || _a === void 0 ? void 0 : _a.transform(cleanURI);
};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Module.js.map

@@ -0,1 +1,2 @@

"use strict";
/**

@@ -6,4 +7,5 @@ * @goto https://creativecloud.adobe.com/apps/?locale=en

*/
Object.defineProperty(exports, "__esModule", { value: true });
const regex = /https:\/\/assets\.adobe\.com\/id\/urn:aaid:sc:EU:([-a-zA-Z0-9]+)/;
export default {
exports.default = {
match: (uri) => Boolean(uri.match(regex)),

@@ -10,0 +12,0 @@ transform: (uri) => {

@@ -1,9 +0,13 @@

import adobeXd from './adobe-xd';
import msTeams from './ms-teams';
import notion from './notion';
import slack from './slack';
import todoist from './todoist';
import vscode from './vscode';
import zoom from './zoom';
export const modules = [adobeXd, msTeams, notion, slack, todoist, vscode, zoom];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.modules = void 0;
const tslib_1 = require("tslib");
const adobe_xd_1 = (0, tslib_1.__importDefault)(require("./adobe-xd"));
const ms_teams_1 = (0, tslib_1.__importDefault)(require("./ms-teams"));
const notion_1 = (0, tslib_1.__importDefault)(require("./notion"));
const slack_1 = (0, tslib_1.__importDefault)(require("./slack"));
const todoist_1 = (0, tslib_1.__importDefault)(require("./todoist"));
const vscode_1 = (0, tslib_1.__importDefault)(require("./vscode"));
const zoom_1 = (0, tslib_1.__importDefault)(require("./zoom"));
exports.modules = [adobe_xd_1.default, ms_teams_1.default, notion_1.default, slack_1.default, todoist_1.default, vscode_1.default, zoom_1.default];
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

"use strict";
/**

@@ -5,3 +6,4 @@ * @goto https://www.office.com

*/
export default {
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
match: (uri) => uri.startsWith('https://teams.microsoft.com'),

@@ -8,0 +10,0 @@ transform: (uri) => {

@@ -0,5 +1,7 @@

"use strict";
/**
* @see https://thomasjfrank.com/how-to-share-notion-links-that-open-directly-in-the-app/
*/
export default {
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
match: (uri) => uri.startsWith('https://www.notion.so'),

@@ -6,0 +8,0 @@ transform: (uri) => uri.replace('https://', 'notion://'),

@@ -0,1 +1,2 @@

"use strict";
/**

@@ -5,4 +6,5 @@ * @see https://api.slack.com/reference/deep-linking#client

*/
Object.defineProperty(exports, "__esModule", { value: true });
const regex = /https:\/\/app\.slack\.com\/client\/([a-zA-Z0-9]+)\/?([a-zA-Z0-9]*)/;
export default {
exports.default = {
match: (uri) => Boolean(uri.match(regex)),

@@ -9,0 +11,0 @@ transform: (uri) => {

@@ -0,6 +1,8 @@

"use strict";
/**
* todoist.com/app/project/foo -> todoist://project?id=foo
*/
Object.defineProperty(exports, "__esModule", { value: true });
const regex = /https:\/\/todoist\.com\/app\/project\/([a-zA-Z0-9]+)/;
export default {
exports.default = {
match: (uri) => Boolean(uri.match(regex)),

@@ -7,0 +9,0 @@ transform: (uri) => { var _a; return `todoist://project?id=${(_a = uri.match(regex)) === null || _a === void 0 ? void 0 : _a[1]}`; },

@@ -0,5 +1,7 @@

"use strict";
/**
* file:///Users/foo/bar.code-workspace -> vscode://file/Users/foo/bar.code-workspace
*/
export default {
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
match: (uri) => uri.startsWith('file:///') && uri.endsWith('.code-workspace'),

@@ -6,0 +8,0 @@ transform: (uri) => uri.replace('file://', 'vscode://file'),

@@ -0,6 +1,8 @@

"use strict";
/**
* https://us02web.zoom.us/j/888888888?pwd=WHNxdUWHNxdUWHNxdUWHNxdU -> zoommtg://us04web.zoom.us/join?action=join&confno=888888888&pwd=WHNxdUWHNxdUWHNxdUWHNxdU
*/
Object.defineProperty(exports, "__esModule", { value: true });
const regex = /https:\/\/us02web\.zoom\.us\/j\/([a-zA-Z0-9]+)/;
export default {
exports.default = {
match: (uri) => Boolean(uri.match(regex)),

@@ -7,0 +9,0 @@ transform: (uri) => {

{
"name": "desktop-deep-link",
"version": "1.1.7",
"version": "1.1.8",
"description": "A library to transform urls to deep link for a lot of desktop apps.",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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