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

@ts-ghost/core-api

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-ghost/core-api - npm Package Compare versions

Comparing version 4.2.1 to 5.0.0

10

./dist/index.js
'use strict';
var zod = require('zod');
var fetch = require('cross-fetch');
var jose = require('jose');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var fetch__default = /*#__PURE__*/_interopDefault(fetch);
// src/schemas/authors.ts

@@ -601,3 +596,3 @@ var ghostIdentitySchema = zod.z.object({

try {
result = await (await fetch__default.default(URL2.toString(), {
result = await (await fetch(URL2.toString(), {
...options,

@@ -623,3 +618,3 @@ headers

const headers = await _genHeaders(api);
return await fetch__default.default(URL2.toString(), {
return await fetch(URL2.toString(), {
...options,

@@ -1007,3 +1002,2 @@ headers

const result = await _fetch(this._URL, this._api, options);
console.log("result", result);
let data = {};

@@ -1010,0 +1004,0 @@ if (result.errors) {

'use strict';
var zod = require('zod');
var fetch = require('cross-fetch');
var jose = require('jose');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var fetch__default = /*#__PURE__*/_interopDefault(fetch);
// src/schemas/authors.ts

@@ -601,3 +596,3 @@ var ghostIdentitySchema = zod.z.object({

try {
result = await (await fetch__default.default(URL2.toString(), {
result = await (await fetch(URL2.toString(), {
...options,

@@ -623,3 +618,3 @@ headers

const headers = await _genHeaders(api);
return await fetch__default.default(URL2.toString(), {
return await fetch(URL2.toString(), {
...options,

@@ -1007,3 +1002,2 @@ headers

const result = await _fetch(this._URL, this._api, options);
console.log("result", result);
let data = {};

@@ -1010,0 +1004,0 @@ if (result.errors) {

7

package.json

@@ -19,3 +19,3 @@ {

},
"version": "4.2.1",
"version": "5.0.0",
"main": "./dist/index.js",

@@ -36,7 +36,6 @@ "module": "./dist/index.mjs",

"vitest": "^0.31.0",
"vitest-fetch-mock": "^0.2.2"
"vitest-fetch-mock": "^0.2.2",
"@vitest/coverage-c8": "^0.31.0"
},
"dependencies": {
"@vitest/coverage-c8": "^0.31.0",
"cross-fetch": "^3.1.6",
"jose": "^4.14.4",

@@ -43,0 +42,0 @@ "zod": "^3.21.4"

@@ -30,3 +30,3 @@ <br/>

### Compatible Ghost versions.
### Requirements

@@ -37,2 +37,7 @@ This client is only compatible with Ghost versions 5.x for now.

- Node.js 16+
- We rely on global `fetch` being available, so you can bring your own
polyfill and if you run Node 16, you'll need to run with the
`--experimental-fetch` flag enabled.
## APIComposer

@@ -39,0 +44,0 @@

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