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

@cardcore/client

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardcore/client - npm Package Compare versions

Comparing version 0.0.1-4bffd04f to 0.0.1-6bc8c162

8

dist/client-poll.js

@@ -46,3 +46,3 @@ "use strict";

_context.next = 2;
return fetch("/" + gameId + ".sha256");
return (0, _util.serverFetch)("/" + gameId + ".sha256");

@@ -90,3 +90,3 @@ case 2:

_context.next = 20;
return fetch("/" + hash + "/next", {
return (0, _util.serverFetch)("/" + hash + "/next", {
method: "HEAD"

@@ -107,3 +107,3 @@ });

_context.next = 25;
return fetch("/" + hash + "/next");
return (0, _util.serverFetch)("/" + hash + "/next");

@@ -198,3 +198,3 @@ case 25:

_context2.next = 5;
return fetch("/" + hash + "/next");
return (0, _util.serverFetch)("/" + hash + "/next");

@@ -201,0 +201,0 @@ case 5:

{
"name": "@cardcore/client",
"version": "0.0.1-4bffd04f",
"version": "0.0.1-6bc8c162",
"description": "streamcards client",

@@ -14,5 +14,9 @@ "main": "dist/index.js",

"dependencies": {
"@streamplace/ssb-keys": "^7.0.16"
"@cardcore/game": "0.0.1-6bc8c162",
"@cardcore/util": "0.0.1-6bc8c162",
"@streamplace/ssb-keys": "7.0.20",
"babel-runtime": "^6.26.0",
"cardcore": "0.0.1-6bc8c162"
},
"gitHead": "4bffd04fa73be20816bbb166afb41334993ed83e"
"gitHead": "6bc8c16251389fba21cae27a880a47427697b61f"
}

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

import { hashState } from "@cardcore/util";
import { hashState, serverFetch } from "@cardcore/util";
import { REMOTE_ACTION } from "cardcore";

@@ -16,3 +16,3 @@

export const clientLoadState = gameId => async (dispatch, getState) => {
const res = await fetch(`/${gameId}.sha256`);
const res = await serverFetch(`/${gameId}.sha256`);
if (res.status !== 200) {

@@ -32,3 +32,3 @@ const err = await res.text();

const hash = await dispatch(clientGetGameHash());
const headRes = await fetch(`/${hash}/next`, {
const headRes = await serverFetch(`/${hash}/next`, {
method: "HEAD"

@@ -39,3 +39,3 @@ });

}
const actionRes = await fetch(`/${hash}/next`);
const actionRes = await serverFetch(`/${hash}/next`);
const action = await actionRes.json();

@@ -72,3 +72,3 @@ await dispatch({ ...action, [REMOTE_ACTION]: true });

const hash = await dispatch(clientGetGameHash());
const res = await fetch(`/${hash}/next`);
const res = await serverFetch(`/${hash}/next`);
if (!res.ok || res.status === 204) {

@@ -75,0 +75,0 @@ return backoff();

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