@vtex/api
Advanced tools
Comparing version 0.13.0 to 0.13.1
@@ -11,3 +11,3 @@ 'use strict'; | ||
var _client = require('./client'); | ||
var _baseClient = require('./baseClient'); | ||
@@ -37,3 +37,3 @@ const routes = { | ||
function Apps(opts) { | ||
const client = (0, _client.createClient)(_extends({}, opts, { baseURL: (0, _client.createWorkspaceURL)('apps', opts) })); | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { baseURL: (0, _baseClient.createWorkspaceURL)('apps', opts) })); | ||
@@ -104,3 +104,3 @@ return { | ||
const params = { context: contextQuery(context) }; | ||
return client(routes.File(app, path), { params: params, transformResponse: _client.noTransforms }); | ||
return client(routes.File(app, path), { params: params, transformResponse: _baseClient.noTransforms }); | ||
}, | ||
@@ -107,0 +107,0 @@ |
@@ -7,5 +7,5 @@ 'use strict'; | ||
var _client = require('./client.js'); | ||
var _baseClient = require('./baseClient.js'); | ||
var _client2 = _interopRequireDefault(_client); | ||
var _baseClient2 = _interopRequireDefault(_baseClient); | ||
@@ -36,3 +36,3 @@ var _Registry = require('./Registry.js'); | ||
Apps: _Apps2.default, | ||
client: _client2.default, | ||
client: _baseClient2.default, | ||
Registry: _Registry2.default, | ||
@@ -39,0 +39,0 @@ Router: _Router2.default, |
@@ -21,3 +21,3 @@ 'use strict'; | ||
var _client = require('./client'); | ||
var _baseClient = require('./baseClient'); | ||
@@ -39,4 +39,4 @@ var _Workspaces = require('./Workspaces'); | ||
function Registry(opts) { | ||
const client = (0, _client.createClient)(_extends({}, opts, { | ||
baseURL: (0, _client.createWorkspaceURL)('apps', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { | ||
baseURL: (0, _baseClient.createWorkspaceURL)('apps', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
})); | ||
@@ -43,0 +43,0 @@ |
@@ -11,3 +11,3 @@ 'use strict'; | ||
var _client = require('./client'); | ||
var _baseClient = require('./baseClient'); | ||
@@ -30,4 +30,4 @@ var _Workspaces = require('./Workspaces'); | ||
const client = (0, _client.createClient)(_extends({}, opts, { | ||
baseURL: (0, _client.createRootURL)('kube-router', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { | ||
baseURL: (0, _baseClient.createRootURL)('kube-router', _extends({}, opts, { workspace: _Workspaces.DefaultWorkspace })) | ||
})); | ||
@@ -34,0 +34,0 @@ |
@@ -19,3 +19,3 @@ 'use strict'; | ||
var _client = require('./client'); | ||
var _baseClient = require('./baseClient'); | ||
@@ -33,3 +33,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function VBase(opts) { | ||
const client = (0, _client.createClient)(_extends({}, opts, { baseURL: (0, _client.createWorkspaceURL)('vbase', opts) })); | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { baseURL: (0, _baseClient.createWorkspaceURL)('vbase', opts) })); | ||
@@ -47,3 +47,3 @@ return { | ||
getFile: (bucket, path) => { | ||
return client(routes.Files(bucket, path), { transformResponse: _client.noTransforms }); | ||
return client(routes.Files(bucket, path), { transformResponse: _baseClient.noTransforms }); | ||
}, | ||
@@ -50,0 +50,0 @@ |
@@ -12,3 +12,3 @@ 'use strict'; | ||
var _client = require('./client'); | ||
var _baseClient = require('./baseClient'); | ||
@@ -27,3 +27,3 @@ const _DefaultWorkspace = 'master'; | ||
function Workspaces(opts) { | ||
const client = (0, _client.createClient)(_extends({}, opts, { baseURL: (0, _client.createRootURL)('kube-router', opts) })); | ||
const client = (0, _baseClient.createClient)(_extends({}, opts, { baseURL: (0, _baseClient.createRootURL)('kube-router', opts) })); | ||
@@ -30,0 +30,0 @@ return { |
{ | ||
"name": "@vtex/api", | ||
"version": "0.13.0", | ||
"version": "0.13.1", | ||
"description": "VTEX I/O API client", | ||
@@ -36,3 +36,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"ava": "^0.18.1", | ||
"ava": "^0.16.0", | ||
"babel-cli": "^6.16.0", | ||
@@ -39,0 +39,0 @@ "babel-eslint": "^6.1.2", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38
0
210243