programming-game
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
152425
23
1
43
1
4761