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

nuxt-api-party

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-api-party - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

2

dist/module.json

@@ -7,3 +7,3 @@ {

},
"version": "0.10.1"
"version": "0.10.2"
}

@@ -5,3 +5,3 @@ import type { FetchError } from 'ofetch';

import type { AsyncData, AsyncDataOptions } from 'nuxt/app';
import type { MaybeComputedRef } from '../utils';
import type { MaybeRefOrGetter } from '../utils';
type ComputedOptions<T extends Record<string, any>> = {

@@ -24,4 +24,4 @@ [K in keyof T]: T[K] extends Function ? T[K] : T[K] extends Record<string, any> ? ComputedOptions<T[K]> | Ref<T[K]> | T[K] : Ref<T[K]> | T[K];

};
export type UseApiData = <T = any>(path: MaybeComputedRef<string>, opts?: UseApiDataOptions<T>) => AsyncData<T, FetchError>;
export declare function _useApiData<T = any>(endpointId: string, path: MaybeComputedRef<string>, opts?: UseApiDataOptions<T>): AsyncData<T, FetchError<any>>;
export type UseApiData = <T = any>(path: MaybeRefOrGetter<string>, opts?: UseApiDataOptions<T>) => AsyncData<T, FetchError>;
export declare function _useApiData<T = any>(endpointId: string, path: MaybeRefOrGetter<string>, opts?: UseApiDataOptions<T>): AsyncData<T, FetchError<any>>;
export {};

@@ -5,2 +5,3 @@ export interface SerializedBlob {

size: number;
name?: string;
}

@@ -7,0 +8,0 @@ export type SerializedFormData = Record<string, string | (SerializedBlob & {

import type { NitroFetchOptions } from 'nitropack';
import type { ComputedRef, Ref } from 'vue';
import type { NuxtApp } from 'nuxt/app';
import type { Ref } from 'vue';
import type { ApiFetchOptions } from './composables/$api';

@@ -9,10 +8,6 @@ export type EndpointFetchOptions = NitroFetchOptions<string> & {

export type MaybeRef<T> = T | Ref<T>;
export type MaybeComputedRef<T> = MaybeReadonlyRef<T> | MaybeRef<T>;
export type MaybeReadonlyRef<T> = (() => T) | ComputedRef<T>;
export declare function resolveUnref<T>(r: MaybeComputedRef<T>): T;
export declare function getFetchHandler(nuxt: NuxtApp, { localFetch }?: {
localFetch?: boolean | undefined;
}): typeof global.$fetch;
export type MaybeRefOrGetter<T> = MaybeRef<T> | (() => T);
export declare function toValue<T>(r: MaybeRefOrGetter<T>): T;
export declare function headersToObject(headers?: HeadersInit): Record<string, string>;
export declare function serializeMaybeEncodedBody(value: ApiFetchOptions['body']): Promise<string | Record<string, any> | null | undefined>;
export declare function deserializeMaybeEncodedBody(value: ApiFetchOptions['body']): Promise<string | Record<string, any> | null | undefined>;
export declare function deserializeMaybeEncodedBody(value: ApiFetchOptions['body']): Promise<string | FormData | Record<string, any> | null | undefined>;

@@ -9,3 +9,8 @@

declare module 'nuxt/schema' {
interface NuxtConfig { ['apiParty']?: Partial<ModuleOptions> }
interface NuxtOptions { ['apiParty']?: ModuleOptions }
}
export { ModuleOptions, default } from './module'
{
"name": "nuxt-api-party",
"type": "module",
"version": "0.10.1",
"packageManager": "pnpm@7.29.3",
"version": "0.10.2",
"packageManager": "pnpm@8.3.1",
"description": "Nuxt 3 module to securely connect with any API",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"license": "MIT",
"homepage": "https://github.com/johannschopplich/nuxt-api-party#readme",
"homepage": "https://nuxt-api-party.byjohann.dev",
"repository": {

@@ -49,11 +49,11 @@ "type": "git",

"release": "bumpp --commit --push --tag",
"prepare": "nuxi prepare playground"
"prepare": "nuxi prepare playground && nuxi prepare test/fixture"
},
"dependencies": {
"@nuxt/kit": "^3.3.1",
"@types/node": "^18.15.3",
"@nuxt/kit": "^3.4.3",
"@types/node": "^18.16.3",
"defu": "^6.1.2",
"formdata-node": "^5.0.0",
"ofetch": "^1.0.1",
"ohash": "^1.0.0",
"ohash": "^1.1.2",
"scule": "^1.0.0",

@@ -63,13 +63,13 @@ "ufo": "^1.1.1"

"devDependencies": {
"@antfu/eslint-config": "^0.36.0",
"@nuxt/module-builder": "^0.2.1",
"@nuxt/test-utils": "^3.3.1",
"bumpp": "^9.0.0",
"eslint": "^8.36.0",
"nuxt": "^3.3.1",
"@antfu/eslint-config": "^0.38.5",
"@nuxt/module-builder": "^0.3.1",
"@nuxt/test-utils": "^3.4.3",
"bumpp": "^9.1.0",
"eslint": "^8.39.0",
"nuxt": "^3.4.3",
"nuxt-api-party": "workspace:*",
"typescript": "^4.9.5",
"vitest": "^0.29.2",
"vue-tsc": "^1.2.0"
"typescript": "^5.0.4",
"vitest": "^0.30.1",
"vue-tsc": "^1.6.3"
}
}

@@ -1,2 +0,2 @@

[![nuxt-api-party](./docs/public/og.png)](https://nuxt-api-party.jhnn.dev)
[![nuxt-api-party](./docs/public/og.png)](https://nuxt-api-party.byjohann.dev)

@@ -10,7 +10,7 @@ # nuxt-api-party

- [✨ &nbsp;Release Notes](https://github.com/johannschopplich/nuxt-api-party/releases)
- [📖 &nbsp;Read the documentation](https://nuxt-api-party.jhnn.dev)
- [📖 &nbsp;Read the documentation](https://nuxt-api-party.byjohann.dev)
## Features
- 🪅 [Dynamic composable names](https://nuxt-api-party.jhnn.dev/api/#dynamic-composables)
- 🪅 [Dynamic composable names](https://nuxt-api-party.byjohann.dev/api/#dynamic-composables)
- 🔒 Protected API credentials in the client

@@ -25,3 +25,3 @@ - 🪢 Token-based authentication built-in or bring your own headers

> [📖 Read the documentation](https://nuxt-api-party.jhnn.dev)
> [📖 Read the documentation](https://nuxt-api-party.byjohann.dev)

@@ -38,3 +38,3 @@ ```bash

> [📖 Read the documentation](https://nuxt-api-party.jhnn.dev)
> [📖 Read the documentation](https://nuxt-api-party.byjohann.dev)

@@ -65,3 +65,3 @@ Add this module `nuxt-api-party` to your Nuxt config and prepare your first API connection by setting an endpoint object with the following properties for the `apiParty` module option:

- `$jsonPlaceholder` – Returns the response data, similar to [`$fetch`](https://nuxt.com/docs/api/utils/dollarfetch#fetch)
- `useJsonPlaceholderData` – Returns [multiple values](https://nuxt-api-party.jhnn.dev/api/use-api-party-data.html#return-values) similar to [`useFetch`](https://nuxt.com/docs/api/composables/use-fetch)
- `useJsonPlaceholderData` – Returns [multiple values](https://nuxt-api-party.byjohann.dev/api/use-api-party-data.html#return-values) similar to [`useFetch`](https://nuxt.com/docs/api/composables/use-fetch)

@@ -68,0 +68,0 @@ Use these composables in your templates or components:

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