New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@workerbase/sdk

Package Overview
Dependencies
Maintainers
3
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@workerbase/sdk - npm Package Compare versions

Comparing version 0.1.15-beta.13 to 0.1.15-beta.14

1

dist/index.js

@@ -40,2 +40,3 @@ "use strict";

var _this = this;
console.log('---------------Workerbase SDK---------------');
Object.keys(resources_1.default).forEach(function (name) {

@@ -42,0 +43,0 @@ _this[name] = new resources_1.default[name](_this);

4

dist/resources/Buttons.d.ts
import { WorkerbaseButton } from '../types/buttons';
export interface ButtonsSDK {
CloseButton: (data: Partial<WorkerbaseButton>) => Partial<WorkerbaseButton>;
CloseButton: (payload: Partial<WorkerbaseButton>) => Partial<WorkerbaseButton>;
}
declare const _default: {
CloseButton: (data: Partial<WorkerbaseButton>) => Partial<WorkerbaseButton>;
CloseButton: (payload: Partial<WorkerbaseButton>) => Partial<WorkerbaseButton>;
};
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
CloseButton: function (data) {
CloseButton: function (payload) {
return {
text: data === null || data === void 0 ? void 0 : data.text,
styles: data === null || data === void 0 ? void 0 : data.styles,
text: payload === null || payload === void 0 ? void 0 : payload.text,
styles: payload === null || payload === void 0 ? void 0 : payload.styles,
action: {

@@ -9,0 +9,0 @@ type: 'close',

import { WorkerbaseStep } from '../types/steps';
export interface StepsSDK {
InfoText: (data: Partial<WorkerbaseStep>) => Partial<WorkerbaseStep>;
InfoText: (payload: Partial<WorkerbaseStep>) => Partial<WorkerbaseStep>;
}
declare const _default: {
InfoText: (data: Partial<WorkerbaseStep>) => Partial<WorkerbaseStep>;
InfoText: (payload: Partial<WorkerbaseStep>) => Partial<WorkerbaseStep>;
};
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
InfoText: function (data) {
InfoText: function (payload) {
var stepId = Buffer.from(Math.random()

@@ -13,5 +13,5 @@ .toString()

id: stepId,
title: data === null || data === void 0 ? void 0 : data.title,
description: data === null || data === void 0 ? void 0 : data.description,
buttons: data === null || data === void 0 ? void 0 : data.buttons,
title: payload === null || payload === void 0 ? void 0 : payload.title,
description: payload === null || payload === void 0 ? void 0 : payload.description,
buttons: payload === null || payload === void 0 ? void 0 : payload.buttons,
};

@@ -18,0 +18,0 @@ },

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -68,7 +79,3 @@ if (k2 === undefined) k2 = k;

internalHostname: process.env.USERS_SERVICE_HOST,
includeBasics: [
WorkerbaseRessource_1.BasicMethods.CREATE,
WorkerbaseRessource_1.BasicMethods.UPDATE,
WorkerbaseRessource_1.BasicMethods.DELETE,
],
includeBasics: [WorkerbaseRessource_1.BasicMethods.UPDATE, WorkerbaseRessource_1.BasicMethods.DELETE],
children: {

@@ -79,23 +86,15 @@ steps: Steps_1.default,

methods: {
create: function (spec) { return function (name, description, project, steps) { return __awaiter(void 0, void 0, void 0, function () {
var initialStepId, payload, data;
return __generator(this, function (_a) {
switch (_a.label) {
create: function (spec) { return function (payload) { return __awaiter(void 0, void 0, void 0, function () {
var additionalData, data;
var _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
initialStepId = steps === null || steps === void 0 ? void 0 : steps[0].id;
payload = {
name: name,
description: description,
project: project,
steps: steps,
initialStepId: initialStepId,
isEvent: false,
isApp: false,
};
additionalData = { initialStepId: (_a = payload.steps) === null || _a === void 0 ? void 0 : _a[0].id };
return [4 /*yield*/, doRequest_1.default(spec._api, spec.basePath + "/", {
method: 'POST',
data: payload,
data: __assign(__assign({}, payload), additionalData),
}, process.env.PROJECTS_SERVICE_HOST)];
case 1:
data = (_a.sent()).data;
data = (_b.sent()).data;
return [2 /*return*/, data.data];

@@ -102,0 +101,0 @@ }

{
"name": "@workerbase/sdk",
"version": "0.1.15-beta.13",
"version": "0.1.15-beta.14",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {

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

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