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

danielbonifacio-sdk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danielbonifacio-sdk - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

2

dist/services/Post.service.d.ts

@@ -41,3 +41,3 @@ import { Post } from "../@types";

}>;
static getExistingPost(id: number): Promise<{
static getExistingPost(id: number, token?: string): Promise<{
id: number;

@@ -44,0 +44,0 @@ editor: {

@@ -17,2 +17,13 @@ "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 __importDefault = (this && this.__importDefault) || function (mod) {

@@ -33,4 +44,8 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

};
PostService.getExistingPost = function (id) {
return this.Http.get("/posts/" + id).then(this.getData);
PostService.getExistingPost = function (id, token) {
return this.Http.get("/posts/" + id, {
headers: __assign({}, (token && {
Authorization: "Bearer " + token,
})),
}).then(this.getData);
};

@@ -37,0 +52,0 @@ PostService.insertNewPost = function (post) {

{
"name": "danielbonifacio-sdk",
"version": "3.0.0",
"version": "3.1.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -13,4 +13,10 @@ import { Post } from "../@types";

static getExistingPost(id: number) {
return this.Http.get<Post.Detailed>(`/posts/${id}`).then(this.getData);
static getExistingPost(id: number, token?: string) {
return this.Http.get<Post.Detailed>(`/posts/${id}`, {
headers: {
...(token && {
Authorization: `Bearer ${token}`,
}),
},
}).then(this.getData);
}

@@ -17,0 +23,0 @@

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