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

@ovh-api/common

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ovh-api/common - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

index.js

@@ -14,3 +14,5 @@ "use strict";

return (id) => {
const child = new OvhProxyApi(target._ovhEngine, `${target._path}/${id}`, `${target._model}/*`);
// escape '/' char
const idStr = String(id).replace(/\//g, '%2F');
const child = new OvhProxyApi(target._ovhEngine, `${target._path}/${idStr}`, `${target._model}/*`);
return new Proxy(child, handlerChild);

@@ -17,0 +19,0 @@ };

@@ -89,4 +89,6 @@ /**

if (key === '$') {
return (id: any) => {
const child = new OvhProxyApi(target._ovhEngine, `${target._path}/${id}`, `${target._model}/*`);
return (id: string | number) => {
// escape '/' char
const idStr = String(id).replace(/\//g, '%2F');
const child = new OvhProxyApi(target._ovhEngine, `${target._path}/${idStr}`, `${target._model}/*`);
return new Proxy(child, handlerChild);

@@ -93,0 +95,0 @@ }

{
"name": "@ovh-api/common",
"description": "common class used to enable Ovh Api new calls Syntax",
"version": "3.1.1",
"version": "3.1.2",
"main": "index.js",

@@ -6,0 +6,0 @@ "typings": "index.d.ts",

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