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 5.0.1 to 5.0.2

12

package.json

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

},
"version": "5.0.1",
"version": "5.0.2",
"main": "./dist/index.js",

@@ -29,11 +29,11 @@ "module": "./dist/index.mjs",

"@ts-ghost/tsconfig": "*",
"@types/node": "^20.1.4",
"@types/node": "^20.2.1",
"@vitest/coverage-c8": "^0.31.1",
"eslint": "^8.40.0",
"tsup": "^6.7.0",
"typescript": "5.0.4",
"vite": "^4.3.5",
"vite": "^4.3.8",
"vite-tsconfig-paths": "^4.0.7",
"vitest": "^0.31.0",
"vitest-fetch-mock": "^0.2.2",
"@vitest/coverage-c8": "^0.31.0"
"vitest": "^0.31.1",
"vitest-fetch-mock": "^0.2.2"
},

@@ -40,0 +40,0 @@ "dependencies": {

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

```typescript
```ts
import { z } from "zod";

@@ -161,3 +161,3 @@ import { APIComposer, type ContentAPICredentials } from "@ts-ghost/core-api";

```typescript
```ts
const composedAPI = new APIComposer(

@@ -188,3 +188,3 @@ { schema: simplifiedSchema, identitySchema: identitySchema, include: simplifiedIncludeSchema },

```typescript
```ts
const composedAPI = new APIComposer(

@@ -218,3 +218,3 @@ { schema: simplifiedSchema, identitySchema: identitySchema, include: simplifiedIncludeSchema },

```typescript
```ts
import { BrowseFetcher } from "@ts-ghost/core-api";

@@ -242,3 +242,3 @@

```typescript
```ts
const composedAPI = new APIComposer(

@@ -263,3 +263,3 @@ { schema: simplifiedSchema, output: simplifiedSchema, include: simplifiedIncludeSchema },

```typescript
```ts
// example for the read query (the data is an object)

@@ -289,3 +289,3 @@ const result: {

```typescript
```ts
// example for the browse query (the data is an array of objects)

@@ -316,3 +316,3 @@ const result: {

```typescript
```ts
const result: {

@@ -356,3 +356,3 @@ success: true;

```typescript
```ts
import { BrowseFetcher } from "@ts-ghost/core-api";

@@ -394,3 +394,3 @@

```typescript
```ts
const bf = new BrowseFetcher(

@@ -414,3 +414,3 @@ { schema: simplifiedSchema, output: simplifiedSchema, include: simplifiedIncludeSchema },

```typescript
```ts
const bf = new BrowseFetcher(

@@ -435,3 +435,3 @@ { schema: simplifiedSchema, output: simplifiedSchema, include: simplifiedIncludeSchema },

```typescript
```ts
const bf = new BrowseFetcher(

@@ -464,3 +464,3 @@ { schema: simplifiedSchema, output: simplifiedSchema, include: simplifiedIncludeSchema },

```typescript
```ts
let result = await api.posts.read({ slug: "typescript-is-cool" }).fetch({ cache: "no-store" });

@@ -477,3 +477,3 @@ ```

```typescript
```ts
const composedAPI = new APIComposer(

@@ -506,3 +506,3 @@ {

```typescript
```ts
// return from the `add` method

@@ -525,3 +525,3 @@ const result: {

```typescript
```ts
let newPost = await composedAPI.edit("edHks74hdKqhs34izzahd45", {

@@ -537,3 +537,3 @@ title: "My new post",

```typescript
```ts
// return from the `edit` method

@@ -556,3 +556,3 @@ const result: {

```typescript
```ts
let newPost = await composedAPI.edit("edHks74hdKqhs34izzahd45", {

@@ -567,3 +567,3 @@ title: "My new post",

```typescript
```ts
// return from the `delete` method

@@ -570,0 +570,0 @@ const result: {

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