This commit is contained in:
srgooglo 2021-05-28 17:01:44 +02:00
commit 5f46195f36
13 changed files with 10360 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

6
.corenode Normal file
View File

@ -0,0 +1,6 @@
{
"devRuntime": {
"headPackage": "relic"
},
"version": "0.1.2"
}

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
node_modules
*/**/node_modules
*/**/dist
*/**/dumps.log

13
dumps.log Normal file
View File

@ -0,0 +1,13 @@
> 2021-05-28T14:26:32.236Z (Runtime.init)[error] : SyntaxError: unknown: Invalid regular expression flag. (1:9)
> 1 | /Users/srgooglo/repos/relic/packages/relic/src
  | ^
Runtime.init (/Users/srgooglo/.config/yarn/global/node_modules/corenode/dist/index.js:169:8)
> 2021-05-28T14:26:35.207Z (Runtime.init)[error] : Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
Require stack:
- /Users/srgooglo/repos/relic
Runtime.init (/Users/srgooglo/.config/yarn/global/node_modules/corenode/dist/index.js:169:8)
> 2021-05-28T14:36:18.443Z (Runtime.init)[error] : Error: Cannot find module '@babel/runtime/helpers/interopRequireDefault'
Require stack:
- /Users/srgooglo/repos/relic
Runtime.init (/Users/srgooglo/.config/yarn/global/node_modules/corenode/dist/index.js:169:8)

7443
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"private": true,
"name": "relic",
"version": "0.1.2",
"author": "RageStudio",
"license": "ISC",
"workspaces": [
"packages/*"
],
"dependencies": {
"corenode": "^0.23.1",
"@babel/runtime": "^7.14.0"
}
}

View File

@ -0,0 +1,18 @@
{
"name": "@ragestudio/relic",
"version": "0.1.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"load.addon.js"
],
"license": "MIT",
"dependencies": {
"axios": "^0.21.1",
"websocket": "^1.0.34"
}
}

View File

@ -0,0 +1 @@
"https://relic.ragestudio.net"

View File

@ -0,0 +1,41 @@
const axios = require("axios")
const wsClient = require('websocket').client
console.log(module)
const defaultRelicOrigin = module._require("./defaultOrigin.json")
let sockets = {}
function registerNewBridge() {
}
function resolveOrigin(origin) {
}
function connectToOrigin(origin) {
if (typeof origin === "undefined") {
origin = defaultRelicOrigin
}
return new DefaultBridge({
origin: origin
})
}
class DefaultBridge {
constructor(params) {
this.params = params
this.origin = this.params.origin ?? "https://relic.ragestudio.net"
}
}
module.exports = {
defaultRelicOrigin,
registerNewBridge,
resolveOrigin,
connectToOrigin
}

View File

@ -0,0 +1 @@
# @relic/server

View File

@ -0,0 +1,14 @@
{
"name": "@ragestudio/relic-server",
"version": "0.1.2",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"files": [
"dist",
"load.addon.js"
],
"license": "MIT"
}

View File

2805
yarn.lock Normal file

File diff suppressed because it is too large Load Diff