1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Migrate to pnpm

This commit is contained in:
Chocobozzz 2025-09-11 11:17:58 +02:00
parent bbc1afada5
commit 906b5f7f2c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
47 changed files with 24183 additions and 23477 deletions

View file

@ -3,17 +3,28 @@
"private": true,
"version": "0.0.0",
"main": "dist/index.js",
"files": [ "dist" ],
"files": [
"dist"
],
"exports": {
"types": "./dist/index.d.ts",
"peertube:tsx": "./src/index.ts",
"default": "./dist/index.js"
},
"type": "module",
"devDependencies": {},
"devDependencies": {
"@types/superagent": "^8.1.9",
"@types/supertest": "^6.0.3",
"supertest": "^7.1.4"
},
"scripts": {
"build": "tsc",
"watch": "tsc -w"
},
"dependencies": {}
"dependencies": {
"@peertube/peertube-core-utils": "workspace:*",
"@peertube/peertube-models": "workspace:*",
"@peertube/peertube-node-utils": "workspace:*",
"@peertube/peertube-typescript-utils": "workspace:*"
}
}

View file

@ -2,20 +2,19 @@ import { io } from 'socket.io-client'
import { AbstractCommand, OverrideCommandOptions } from '../shared/index.js'
export class SocketIOCommand extends AbstractCommand {
getUserNotificationSocket (options: OverrideCommandOptions = {}) {
getUserNotificationSocket (options: OverrideCommandOptions = {}): ReturnType<typeof io> {
return io(this.server.url + '/user-notifications', {
query: { accessToken: options.token ?? this.server.accessToken }
})
}
getLiveNotificationSocket () {
getLiveNotificationSocket (): ReturnType<typeof io> {
return io(this.server.url + '/live-videos')
}
getRunnersSocket (options: {
runnerToken: string
}) {
}): ReturnType<typeof io> {
return io(this.server.url + '/runners', {
reconnection: false,
auth: { runnerToken: options.runnerToken }