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

@vtex/api

Package Overview
Dependencies
Maintainers
6
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vtex/api - npm Package Compare versions

Comparing version 0.19.0 to 0.20.0

11

lib/Workspaces.js

@@ -14,5 +14,4 @@ 'use strict';

const _DefaultWorkspace = 'master';
const DefaultWorkspace = exports.DefaultWorkspace = 'master';
exports.DefaultWorkspace = _DefaultWorkspace;
const routes = {

@@ -23,3 +22,3 @@ Account: account => `/${ account }`,

DefaultWorkspace: account => `${ routes.Workspace(account, _DefaultWorkspace) }`
Promote: account => `${ routes.Workspace(account, DefaultWorkspace) }/_promote`
};

@@ -39,2 +38,6 @@

set: (account, workspace, metadata) => {
return client.put(routes.Workspace(account, workspace), metadata);
},
create: (account, workspace) => {

@@ -49,5 +52,5 @@ return client.post(routes.Account(account), { name: workspace });

promote: (account, workspace) => {
return client.put(routes.DefaultWorkspace(account, workspace), { workspace: workspace });
return client.put(routes.Promote(account), { workspace: workspace });
}
};
}
{
"name": "@vtex/api",
"version": "0.19.0",
"version": "0.20.0",
"description": "VTEX I/O API client",

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

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