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

netlify-api

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-api - npm Package Compare versions

Comparing version 0.4.2 to 0.5.0

7

CHANGELOG.md
# netlify-api
## 0.5.0
### Minor Changes
- 2c6c5a4: Bump version to 2.32.0
- 8580858: Bump API version to 2.33.0
## 0.4.2

@@ -4,0 +11,0 @@

48

dist/index.js

@@ -6,2 +6,5 @@ "use strict";

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __typeError = (msg) => {
throw TypeError(msg);
};
var __export = (target, all) => {

@@ -20,20 +23,6 @@ for (var name in all)

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var __accessCheck = (obj, member, msg) => {
if (!member.has(obj))
throw TypeError("Cannot " + msg);
};
var __privateGet = (obj, member, getter) => {
__accessCheck(obj, member, "read from private field");
return getter ? getter.call(obj) : member.get(obj);
};
var __privateAdd = (obj, member, value) => {
if (member.has(obj))
throw TypeError("Cannot add the same private member more than once");
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
};
var __privateSet = (obj, member, value, setter) => {
__accessCheck(obj, member, "write to private field");
setter ? setter.call(obj, value) : member.set(obj, value);
return value;
};
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);

@@ -104,4 +93,3 @@ // src/index.ts

let query = new URLSearchParams(queryParams).toString();
if (query)
query = `?${query}`;
if (query) query = `?${query}`;
return url.replace(/\{\w*\}/g, (key) => pathParams[key.slice(1, -1)] ?? "") + query;

@@ -665,2 +653,8 @@ };

});
var markDevServerActivity = (variables, signal) => fetch2({
url: "/sites/{siteId}/dev_servers/{devServerId}/activity",
method: "post",
...variables,
signal
});
var listSiteDevServerHooks = (variables, signal) => fetch2({ url: "/sites/{siteId}/dev_server_hooks", method: "get", ...variables, signal });

@@ -764,3 +758,3 @@ var createSiteDevServerHook = (variables, signal) => fetch2({ url: "/sites/{siteId}/dev_server_hooks", method: "post", ...variables, signal });

splitTest: { createSplitTest, getSplitTests, updateSplitTest, getSplitTest, enableSplitTest, disableSplitTest },
devServer: { listSiteDevServers, createSiteDevServer, deleteSiteDevServers, getSiteDevServer },
devServer: { listSiteDevServers, createSiteDevServer, deleteSiteDevServers, getSiteDevServer, markDevServerActivity },
devServerHook: {

@@ -779,11 +773,9 @@ listSiteDevServerHooks,

constructor(options) {
__privateAdd(this, _token, void 0);
__privateAdd(this, _fetch, void 0);
__privateAdd(this, _basePath, void 0);
__privateAdd(this, _token);
__privateAdd(this, _fetch);
__privateAdd(this, _basePath);
__privateSet(this, _token, options.token);
if (!options.token)
throw new Error("Token is required");
if (!options.token) throw new Error("Token is required");
__privateSet(this, _fetch, options.fetch || fetch);
if (!__privateGet(this, _fetch))
throw new Error("Fetch is required");
if (!__privateGet(this, _fetch)) throw new Error("Fetch is required");
__privateSet(this, _basePath, options.basePath || "/api/v1");

@@ -790,0 +782,0 @@ }

{
"name": "netlify-api",
"version": "0.4.2",
"version": "0.5.0",
"description": "Netlify API client for Node.js",

@@ -5,0 +5,0 @@ "author": "SferaDev",

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 too big to display

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