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

@coscine/api-connection

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coscine/api-connection - npm Package Compare versions

Comparing version 1.17.0 to 1.17.1

dist/coscine-api-connection-1.17.1.tgz

18

dist/api-connection.es5.js

@@ -713,2 +713,16 @@ var axios = require('axios');

}
function preparePath(path) {
var resultString = '';
if (path.charAt(0) === '/') {
path = path.substring(1);
}
var array = path.split('/');
for (var i = 0; i < array.length; i++) {
resultString += encodeURIComponent(array[i]);
if (i !== array.length - 1) {
resultString += '/';
}
}
return resultString;
}
var TreeApi = /** @class */ (function () {

@@ -722,3 +736,3 @@ function TreeApi() {

return axios$h
.get(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path))
.get(getTreeApiUrl() + resourceId + '/' + preparePath(path))
.then(thenHandler)

@@ -742,3 +756,3 @@ .catch(catchHandler);

return axios$h
.put(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path), body)
.put(getTreeApiUrl() + resourceId + '/' + preparePath(path), body)
.then(thenHandler)

@@ -745,0 +759,0 @@ .catch(catchHandler);

@@ -719,2 +719,16 @@ (function (global, factory) {

}
function preparePath(path) {
var resultString = '';
if (path.charAt(0) === '/') {
path = path.substring(1);
}
var array = path.split('/');
for (var i = 0; i < array.length; i++) {
resultString += encodeURIComponent(array[i]);
if (i !== array.length - 1) {
resultString += '/';
}
}
return resultString;
}
var TreeApi = /** @class */ (function () {

@@ -728,3 +742,3 @@ function TreeApi() {

return axios$h
.get(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path))
.get(getTreeApiUrl() + resourceId + '/' + preparePath(path))
.then(thenHandler)

@@ -748,3 +762,3 @@ .catch(catchHandler);

return axios$h
.put(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path), body)
.put(getTreeApiUrl() + resourceId + '/' + preparePath(path), body)
.then(thenHandler)

@@ -751,0 +765,0 @@ .catch(catchHandler);

@@ -9,2 +9,16 @@ "use strict";

}
function preparePath(path) {
var resultString = '';
if (path.charAt(0) === '/') {
path = path.substring(1);
}
var array = path.split('/');
for (var i = 0; i < array.length; i++) {
resultString += encodeURIComponent(array[i]);
if (i !== array.length - 1) {
resultString += '/';
}
}
return resultString;
}
var TreeApi = /** @class */ (function () {

@@ -18,3 +32,3 @@ function TreeApi() {

return axios
.get(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path))
.get(getTreeApiUrl() + resourceId + '/' + preparePath(path))
.then(thenHandler)

@@ -38,3 +52,3 @@ .catch(catchHandler);

return axios
.put(getTreeApiUrl() + resourceId + '/' + encodeURIComponent(path), body)
.put(getTreeApiUrl() + resourceId + '/' + preparePath(path), body)
.then(thenHandler)

@@ -41,0 +55,0 @@ .catch(catchHandler);

2

package.json
{
"name": "@coscine/api-connection",
"version": "1.17.0",
"version": "1.17.1",
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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