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

zodios

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zodios - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

10

lib/react/hooks.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createReactHooks = exports.ZodiosReact = void 0;
exports.ZodiosHooks = void 0;
const react_query_1 = require("react-query");
const utils_1 = require("../utils");
class ZodiosReact {
class ZodiosHooks {
constructor(apiName, zodios) {

@@ -47,6 +47,2 @@ this.apiName = apiName;

}
exports.ZodiosReact = ZodiosReact;
function createReactHooks(apiName, zodios) {
return new ZodiosReact(apiName, zodios);
}
exports.createReactHooks = createReactHooks;
exports.ZodiosHooks = ZodiosHooks;

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

export { createReactHooks, ZodiosReact } from "./hooks";
export { ZodiosHooks } from "./hooks";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ZodiosReact = exports.createReactHooks = void 0;
exports.ZodiosHooks = void 0;
var hooks_1 = require("./hooks");
Object.defineProperty(exports, "createReactHooks", { enumerable: true, get: function () { return hooks_1.createReactHooks; } });
Object.defineProperty(exports, "ZodiosReact", { enumerable: true, get: function () { return hooks_1.ZodiosReact; } });
Object.defineProperty(exports, "ZodiosHooks", { enumerable: true, get: function () { return hooks_1.ZodiosHooks; } });
{
"name": "zodios",
"description": "Typescript API client with autocompletion and zod validations",
"version": "5.0.0",
"version": "5.0.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts",

@@ -129,4 +129,4 @@ <h1 align="center">Zodios</h1>

import { QueryClient, QueryClientProvider } from 'react-query';
import { Paths, Zodios, ZodiosRequestOptions } from "zodios";
import { createReactClient } from "zodios/react";
import { Zodios } from "zodios";
import { ZodiosHooks } from "zodios/react";
import { z } from "zod";

@@ -169,3 +169,3 @@

const zodios = new Zodios(baseUrl, api);
const zodiosHooks = createReactHooks("jsonplaceholder", zodios);
const zodiosHooks = new ZodiosHooks("jsonplaceholder", zodios);

@@ -172,0 +172,0 @@ const Users = () => {

Sorry, the diff of this file is too big to display

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