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

directus-sdk-node

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus-sdk-node - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

2

package.json
{
"name": "directus-sdk-node",
"version": "1.0.1",
"version": "1.1.0",
"description": "A JavaScript client for the Directus API",

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

@@ -5,2 +5,4 @@ # Directus SDK for Node

[![NPM](https://nodei.co/npm/directus-sdk-node.png)](https://nodei.co/npm/directus-sdk-node/)
## Work in progress

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

@@ -35,3 +35,7 @@ const vsprintf = require('sprintf-js').vsprintf;

} else {
this.baseEndpoint = `${args.options.baseUrl.replace(/\/$/g, '')}/${this.apiVersion}/`;
if(args.options.baseUrl.match(/api\/?$/)) {
this.baseEndpoint = `${args.options.baseUrl.replace(/\/$/g, '')}/${this.apiVersion}/`;
} else {
this.baseEndpoint = `${args.options.baseUrl.replace(/\/$/g, '')}/api/${this.apiVersion}/`;
}
}

@@ -38,0 +42,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