Socket
Socket
Sign inDemoInstall

programming-game

Package Overview
Dependencies
13
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

README.md

9

build/index.js

@@ -108,8 +108,5 @@ "use strict";

var credentials = _a.credentials, onTick = _a.onTick;
console.log("connecting...");
var url =
// @ts-ignore
process.env.NODE_ENV === "production"
? "wss://programming-game-561b388b0593.herokuapp.com"
: "http://localhost:3000";
var url = process.env.NODE_ENV === "development"
? "http://localhost:3000"
: "wss://programming-game.com";
var socket = (0, socket_io_client_1.io)(url, {

@@ -116,0 +113,0 @@ auth: {

{
"name": "programming-game",
"version": "0.0.0",
"version": "0.0.1",
"description": "",
"main": "index.js",
"keywords": [],

@@ -13,6 +12,18 @@ "author": "",

},
"devDependencies": {
"@types/node": "20.2.5"
},
"exports": {
".": "./build/index.js",
"./constants": "./build/constants.js",
"./items": "./build/items.js",
"./spells": "./build/spells.js",
"./types": "./build/types.js",
"./weapon-skills": "./build/weapon-skills.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc -w"
"dev": "tsc -w",
"prepublish": "npm run build"
}
}

@@ -135,8 +135,6 @@ import { io } from "socket.io-client";

export const connect = ({ credentials, onTick }: ConnectProps) => {
console.log("connecting...");
const url =
// @ts-ignore
process.env.NODE_ENV === "production"
? `wss://programming-game-561b388b0593.herokuapp.com`
: "http://localhost:3000";
process.env.NODE_ENV === "development"
? "http://localhost:3000"
: `wss://programming-game.com`;
const socket = io(url, {

@@ -143,0 +141,0 @@ auth: {

@@ -15,3 +15,2 @@ {

"isolatedModules": true,
"jsx": "preserve",
"incremental": true,

@@ -18,0 +17,0 @@ "paths": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc