Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

akkeris

Package Overview
Dependencies
Maintainers
4
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akkeris - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

2

package.json
{
"name": "akkeris",
"version": "2.4.1",
"version": "2.4.2",
"description": "Akkeris CLI",

@@ -5,0 +5,0 @@ "main": "aka.js",

@@ -56,10 +56,10 @@ "use strict"

function create_route(appkit, args) {
if(!args.TARGET_PATH) {
return appkit.terminal.error("A target path is required.")
}
console.assert(args.app && args.app !== '', 'Please specify an app.')
console.assert(args.site && /^[a-z0-9.-]+$/.test(args.site), 'Expected: A site ID or domain name.')
console.assert(args.SOURCE_PATH && /\/[a-zA-Z0-9_-]*/.test(args.SOURCE_PATH), 'SOURCE_PATH must start with a slash and afterward match /[a-zA-Z0-9_-]+/.')
if(args.TARGET_PATH) {
console.assert(/\/[a-zA-Z0-9_-]*/.test(args.TARGET_PATH), 'TARGET_PATH must start with a slash and afterward match /[a-zA-Z0-9_-]+/.')
} else {
args.TARGET_PATH = '';
}
console.assert(/\/[a-zA-Z0-9_-]*/.test(args.TARGET_PATH), 'TARGET_PATH must start with a slash and afterward match /[a-zA-Z0-9_-]+/.')
args.site = clean_site(args.site);

@@ -138,3 +138,3 @@ let payload = {app:args.app, site:args.site, source_path:args.SOURCE_PATH, target_path: args.TARGET_PATH}

appkit.args.command('routes', 'show route information for an app.', query_opts, list_routes.bind(null, appkit))
appkit.args.command('routes:create SOURCE_PATH [TARGET_PATH]', "route https traffic from a site to an app", create_opts, create_route.bind(null, appkit))
appkit.args.command('routes:create SOURCE_PATH TARGET_PATH', "route https traffic from a site to an app", create_opts, create_route.bind(null, appkit))
appkit.args.command('routes:remove ID', 'delete a route', {}, delete_route.bind(null, appkit))

@@ -141,0 +141,0 @@

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