Huge News!Announcing our $40M Series B led by Abstract Ventures.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.14.1 to 0.15.1

19

lib/Apps.js

@@ -16,15 +16,15 @@ 'use strict';

App: app => `${ routes.Apps }/${ app }`,
App: app => `${routes.Apps}/${app}`,
Links: '/links',
Link: app => `${ routes.Links }/${ app }`,
Link: app => `${routes.Links}/${app}`,
Acknowledge: (app, service) => `${ routes.App(app) }/acknowledge/${ service }`,
Acknowledge: (app, service) => `${routes.App(app)}/acknowledge/${service}`,
Settings: app => `${ routes.App(app) }/settings`,
Settings: app => `${routes.App(app)}/settings`,
Files: app => `${ routes.App(app) }/files`,
Files: app => `${routes.App(app)}/files`,
File: (app, path) => `${ routes.Files(app) }/${ path }`,
File: (app, path) => `${routes.Files(app)}/${path}`,

@@ -63,2 +63,9 @@ Dependencies: '/dependencies'

saveAppSettings: (app, settings) => {
const headers = {
'Content-Type': 'application/json'
};
return client.put(routes.Settings(app), settings, { headers: headers });
},
listApps: function listApps() {

@@ -65,0 +72,0 @@ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

@@ -35,3 +35,3 @@ 'use strict';

const headers = {
'Authorization': `token ${ authToken }`,
'Authorization': `token ${authToken}`,
'User-Agent': userAgent

@@ -66,3 +66,3 @@ };

}
return createRootURL(service, opts) + `/${ account }/${ workspace }`;
return createRootURL(service, opts) + `/${account}/${workspace}`;
}

@@ -79,3 +79,3 @@

if (region) {
return `http://${ service }.${ region }.vtex.io`;
return `http://${service}.${region}.vtex.io`;
}

@@ -82,0 +82,0 @@

@@ -35,3 +35,3 @@ 'use strict';

const headers = {
'Authorization': `token ${ authToken }`,
'Authorization': `token ${authToken}`,
'User-Agent': userAgent

@@ -38,0 +38,0 @@ };

@@ -24,9 +24,9 @@ 'use strict';

App: app => `${ routes.Registry }/${ app }`,
App: app => `${routes.Registry}/${app}`,
AppVersion: (app, version) => `${ routes.App(app) }/${ version }`,
AppVersion: (app, version) => `${routes.App(app)}/${version}`,
AppFiles: (app, version) => `${ routes.AppVersion(app, version) }/files`,
AppFiles: (app, version) => `${routes.AppVersion(app, version)}/files`,
AppFile: (app, version, path) => `${ routes.AppFiles(app, version) }/${ path }`
AppFile: (app, version, path) => `${routes.AppFiles(app, version)}/${path}`
};

@@ -33,0 +33,0 @@

@@ -18,7 +18,7 @@ 'use strict';

AvailableVersions: name => `${ routes.AvailableServices }/${ name }`,
AvailableVersions: name => `${routes.AvailableServices}/${name}`,
InstalledServices: (account, workspace) => `/${ account }/${ workspace }/services`,
InstalledServices: (account, workspace) => `/${account}/${workspace}/services`,
InstalledService: (account, workspace, name) => `/${ routes.InstalledServices(account, workspace) }/services/${ name }`
InstalledService: (account, workspace, name) => `/${routes.InstalledServices(account, workspace)}/services/${name}`
};

@@ -25,0 +25,0 @@

@@ -24,7 +24,7 @@ 'use strict';

const routes = {
Bucket: bucket => `/buckets/${ bucket }`,
Bucket: bucket => `/buckets/${bucket}`,
Files: bucket => `${ routes.Bucket(bucket) }/files`,
Files: bucket => `${routes.Bucket(bucket)}/files`,
File: (bucket, path) => `${ routes.Bucket(bucket) }/files/${ path }`
File: (bucket, path) => `${routes.Bucket(bucket)}/files/${path}`
};

@@ -31,0 +31,0 @@

@@ -18,7 +18,7 @@ 'use strict';

const routes = {
Account: account => `/${ account }`,
Account: account => `/${account}`,
Workspace: (account, workspace) => `${ routes.Account(account) }/${ workspace }`,
Workspace: (account, workspace) => `${routes.Account(account)}/${workspace}`,
DefaultWorkspace: account => `${ routes.Workspace(account, _DefaultWorkspace) }`
DefaultWorkspace: account => `${routes.Workspace(account, _DefaultWorkspace)}`
};

@@ -25,0 +25,0 @@

{
"name": "@vtex/api",
"version": "0.14.1",
"version": "0.15.1",
"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