mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-19 21:50:23 -06:00
* fix patch-package - don't hoist dependencies that are patched, this way we can be assured the path is always correct - put all patches in root postinstall so postinstall-postinstall is guaranteed to work * wip * Revert "fix patch-package" This reverts commit5583f21478. * use per package patches * don't ignor engines or silence * try: make sinon patch devonly * fix socketspec * run full ci on this branch * bump xcode tools to bump mac node version * also run appveyor * Revert "run full ci on this branch" This reverts commitc3e52d09ec. * Revert "also run appveyor" This reverts commitbfe7b0499a.
27 lines
518 B
JavaScript
27 lines
518 B
JavaScript
const fs = require('fs')
|
|
const server = require('socket.io')
|
|
const { version } = require('socket.io-client/package.json')
|
|
const { client, circularParser } = require('./browser')
|
|
|
|
const clientSource = require.resolve('socket.io-client/dist/socket.io.js')
|
|
|
|
module.exports = {
|
|
server,
|
|
|
|
client,
|
|
|
|
circularParser,
|
|
|
|
getPathToClientSource () {
|
|
return clientSource
|
|
},
|
|
|
|
getClientVersion () {
|
|
return version
|
|
},
|
|
|
|
getClientSource () {
|
|
return fs.readFileSync(this.getPathToClientSource(), 'utf8')
|
|
},
|
|
}
|