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

replicache-nextjs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replicache-nextjs - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

lib/backend/push.d.ts

@@ -1,3 +0,5 @@

import type { MutatorDefs } from "replicache";
import { ZodType } from "zod";
import type { MutatorDefs, ReadonlyJSONValue } from "replicache";
export declare function parseIfDebug<T>(schema: ZodType<T>, val: ReadonlyJSONValue): T;
export declare type Error = "SpaceNotFound";
export declare function push<M extends MutatorDefs>(spaceID: string, requestBody: any, mutators: M): Promise<void>;

@@ -5,3 +5,2 @@ import { transact } from "./pg.js";

import { z } from "zod";
import { parseIfDebug } from "@rocicorp/rails";
import { getPokeBackend } from "./poke/poke.js";

@@ -17,2 +16,8 @@ const mutationSchema = z.object({

});
export function parseIfDebug(schema, val) {
if (globalThis.process?.env?.NODE_ENV !== "production") {
return schema.parse(val);
}
return val;
}
export async function push(spaceID,

@@ -19,0 +24,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any

{
"name": "replicache-nextjs",
"version": "0.1.4",
"version": "0.1.5",
"description": "Generic Replicache backend on Next.js",

@@ -18,13 +18,15 @@ "homepage": "https://github.com/rocicorp/replicache-nextjs",

"peerDependencies": {
"@supabase/supabase-js": ">=1.35.3",
"next": ">=12.1.6",
"pg-mem": ">=2.5.0",
"react": ">=16.0 <18.0",
"react-dom": ">=16.0 <18.0",
"replicache": ">=11.0.0",
"pg-mem": ">=2.5.0",
"@supabase/supabase-js": ">=1.35.3"
"zod": ">=3.17.3",
"pg": ">=8.6.0"
},
"dependencies": {
"nanoid": "^3.3.1"
},
"devDependencies": {
"@rocicorp/logger": "^2.2.0",
"@rocicorp/rails": "^0.2.1",
"@supabase/supabase-js": "^1.35.3",
"@types/chai": "^4.3.0",

@@ -39,14 +41,7 @@ "@types/mocha": "^9.1.0",

"chai": "^4.3.6",
"classnames": "^2.3.1",
"eslint": "^8.2.0",
"mocha": "^9.2.1",
"nanoid": "^3.3.1",
"next": "^12.1.6",
"pg": "^8.7.3",
"pg-mem": "^2.5.0",
"prettier": "^2.2.1",
"react": "17.0.2",
"ts-node": "^10.7.0",
"typescript": "^4.7.4",
"zod": "^3.17.3"
"typescript": "^4.7.4"
},

@@ -53,0 +48,0 @@ "type": "module",

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