Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating p-queue and node-fetch #565

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set Node.js version
uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: "18.x"
- run: node setVersion.js
working-directory: .\components\text-to-socket-engine
- run: |
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Set Node.js version
uses: actions/setup-node@v3
with:
node-version: "14.x"
node-version: "18.x"
- uses: actions/download-artifact@v3
with:
name: text-to-socket-engine-x86
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ jobs:
node-version: "14.x"
- run: npm i -g pnpm
- run: pnpm update -r --latest -E
- run: |
( cd ./components/assistive-webdriver && pnpm install p-queue@6.6.2 )
( cd ./components/assistive-webdriver && pnpm install node-fetch@2.6.7 )
( cd ./components/assistive-webdriver && pnpm install -D @types/node-fetch@2.6.2 )
( cd ./components/assistive-playwright-client && pnpm install node-fetch@2.6.7 )
( cd ./components/assistive-playwright-client && pnpm install -D @types/node-fetch@2.6.2 )
( cd ./components/assistive-playwright-server && pnpm install -D node-fetch@2.6.7 )
( cd ./components/assistive-playwright-server && pnpm install -D @types/node-fetch@2.6.2 )
( cd ./components/assistive-playwright-tester && pnpm install node-fetch@2.6.7 )
( cd ./components/assistive-playwright-tester && pnpm install -D @types/node-fetch@2.6.2 )
- name: Create pull request
uses: peter-evans/create-pull-request@bd72e1b7922d417764d27d30768117ad7da78a0e # v4.0.2
with:
Expand Down
5 changes: 4 additions & 1 deletion components/assistive-playwright-client/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
*/

module.exports = {
transformIgnorePatterns: [],
transform: {
"\\.m?js$": "../../tools/jestEsmTransform",
"^.+\\.ts$": [
"../../tools/code-coverage/jestTransform",
{ tsconfig: "tsconfig.test.json" }
]
},
testEnvironment: "../../tools/code-coverage/jestEnv",
testMatch: ["<rootDir>/test/**/*.spec.ts"],
testPathIgnorePatterns: ["<rootDir>/test/e2e/"]
testPathIgnorePatterns: ["<rootDir>/test/e2e/"],
testTimeout: 30000
};
8 changes: 5 additions & 3 deletions components/assistive-playwright-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,22 @@
],
"devDependencies": {
"@microsoft/api-extractor": "7.33.6",
"@rollup/plugin-commonjs": "23.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-typescript": "10.0.1",
"@types/jest": "29.2.3",
"@types/node-fetch": "2.6.2",
"@types/pngjs": "6.0.1",
"@types/uuid": "9.0.0",
"@types/ws": "8.5.3",
"assistive-playwright-server": "workspace:*",
"jest": "29.3.1",
"rollup": "3.5.0",
"node-fetch": "3.3.0",
"rollup": "3.5.1",
"tslib": "2.4.1",
"typescript": "4.9.3",
"wait-port": "1.0.4"
},
"dependencies": {
"node-fetch": "2.6.7",
"playwright-core": "1.28.1",
"uuid": "9.0.0",
"vm-providers": "workspace:*",
Expand Down
7 changes: 5 additions & 2 deletions components/assistive-playwright-client/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
require("../../tools/code-coverage/overrideReadFileSync");
const pkg = require("./package.json");
const dependencies = Object.keys(pkg.dependencies);
const commonjs = require("@rollup/plugin-commonjs");
const { nodeResolve } = require("@rollup/plugin-node-resolve");
const typescript = require("@rollup/plugin-typescript");

module.exports = [
{
output: [
{
file: "./dist/index.js",
format: "cjs"
format: "cjs",
inlineDynamicImports: true
}
],
input: "./src/index.ts",
Expand All @@ -41,6 +44,6 @@ module.exports = [
"stream",
"url"
]),
plugins: [typescript()]
plugins: [commonjs({ preferBuiltins: true }), nodeResolve(), typescript()]
}
];
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ describe("with server and no vm", () => {
});

it("should create a page in chromium", async () => {
const { chromium } = connectRemotePlaywright("http://localhost:8885");
const { chromium } = connectRemotePlaywright("http://127.0.0.1:8885");
const instance = await chromium.launch();
try {
const context = await instance.newContext();
try {
const page = await context.newPage();
try {
const response = await page.goto("http://localhost:8885");
const response = await page.goto("http://127.0.0.1:8885");
const json = await response!.json();
expect(json).toEqual({ server: "assistive-playwright-server" });
} finally {
Expand All @@ -67,7 +67,7 @@ describe("with server and no vm", () => {

it("should receive messages from the screen reader", async () => {
const screenReader = await ScreenReaderClient.create(
"ws://localhost:8885/screen-reader"
"ws://127.0.0.1:8885/screen-reader"
);
expect(screenReader.connected).toBe(true);
const socketTCP = createConnection(8886, "127.0.0.1");
Expand Down
2 changes: 2 additions & 0 deletions components/assistive-playwright-server/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
*/

module.exports = {
transformIgnorePatterns: [],
transform: {
"\\.m?js$": "../../tools/jestEsmTransform",
"^.+\\.ts$": [
"../../tools/code-coverage/jestTransform",
{ tsconfig: "tsconfig.test.json" }
Expand Down
5 changes: 2 additions & 3 deletions components/assistive-playwright-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
"@types/co-body": "6.1.0",
"@types/http-proxy": "1.17.9",
"@types/jest": "29.2.3",
"@types/node-fetch": "2.6.2",
"@types/ws": "8.5.3",
"@types/yargs": "17.0.15",
"jest": "29.3.1",
"node-fetch": "2.6.7",
"rollup": "3.5.0",
"node-fetch": "3.3.0",
"rollup": "3.5.1",
"tslib": "2.4.1",
"typescript": "4.9.3",
"typescript-json-schema": "0.55.0",
Expand Down
6 changes: 4 additions & 2 deletions components/assistive-playwright-server/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ const {
} = require("../../tools/code-coverage/overrideReadFileSync");
const pkg = require("./package.json");
const dependencies = Object.keys(pkg.dependencies);
const typescript = require("@rollup/plugin-typescript");
const commonjs = require("@rollup/plugin-commonjs");
const { nodeResolve } = require("@rollup/plugin-node-resolve");
const typescript = require("@rollup/plugin-typescript");
const replace = require("@rollup/plugin-replace");

module.exports = {
Expand All @@ -49,7 +50,8 @@ module.exports = {
},
preventAssignment: true
}),
commonjs(),
commonjs({ preferBuiltins: true }),
nodeResolve(),
typescript()
]
};
2 changes: 1 addition & 1 deletion components/assistive-playwright-test-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"sirv-cli": "2.0.2"
},
"scripts": {
"start": "sirv -H 0.0.0.0 public"
"start": "sirv -H :: public"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion components/assistive-playwright-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@microsoft/api-extractor": "7.33.6",
"@playwright/test": "1.28.1",
"@types/uuid": "9.0.0",
"rollup": "3.5.0",
"rollup": "3.5.1",
"tslib": "2.4.1",
"typescript": "4.9.3"
},
Expand Down
8 changes: 5 additions & 3 deletions components/assistive-playwright-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@
],
"dependencies": {
"assistive-playwright-client": "workspace:*",
"node-fetch": "2.6.7",
"uuid": "9.0.0",
"vm-providers": "workspace:*",
"winston": "3.8.2",
"yargs": "17.6.2"
},
"devDependencies": {
"@types/node-fetch": "2.6.2",
"@rollup/plugin-commonjs": "23.0.3",
"@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-typescript": "10.0.1",
"@types/uuid": "9.0.0",
"@types/yargs": "17.0.15",
"playwright-core": "1.28.1",
"rollup": "3.5.0",
"node-fetch": "3.3.0",
"rollup": "3.5.1",
"tslib": "2.4.1",
"typescript": "4.9.3",
"wait-port": "1.0.4"
Expand Down
7 changes: 5 additions & 2 deletions components/assistive-playwright-tester/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@
require("../../tools/code-coverage/overrideReadFileSync");
const pkg = require("./package.json");
const dependencies = Object.keys(pkg.dependencies);
const commonjs = require("@rollup/plugin-commonjs");
const { nodeResolve } = require("@rollup/plugin-node-resolve");
const typescript = require("@rollup/plugin-typescript");

module.exports = {
output: [
{
file: "./dist/index.js",
format: "cjs"
format: "cjs",
inlineDynamicImports: true
}
],
input: "./src/cli.ts",
external: dependencies.concat(["http", "os", "readline", "path", "fs"]),
plugins: [typescript()]
plugins: [commonjs({ preferBuiltins: true }), nodeResolve(), typescript()]
};
4 changes: 3 additions & 1 deletion components/assistive-webdriver/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
*/

module.exports = {
transformIgnorePatterns: [],
transform: {
"\\.m?js$": "../../tools/jestEsmTransform",
"^.+\\.ts$": [
"../../tools/code-coverage/jestTransform",
{ tsconfig: "tsconfig.test.json" }
]
},
testEnvironment: "../../tools/code-coverage/jestEnv",
testMatch: ["<rootDir>/test/**/*.spec.ts"],
testTimeout: 10000
testTimeout: 30000
};
9 changes: 4 additions & 5 deletions components/assistive-webdriver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"http-proxy": "1.18.1",
"koa": "2.13.4",
"koa-route": "3.2.0",
"node-fetch": "2.6.7",
"uuid": "9.0.0",
"vm-providers": "workspace:*",
"winston": "3.8.2",
Expand All @@ -56,18 +55,18 @@
"@types/koa": "2.13.5",
"@types/koa-bodyparser": "4.3.10",
"@types/koa-route": "3.2.5",
"@types/node-fetch": "2.6.2",
"@types/pngjs": "6.0.1",
"@types/selenium-webdriver": "4.1.9",
"@types/uuid": "9.0.0",
"@types/ws": "8.5.3",
"@types/yargs": "17.0.15",
"jest": "29.3.1",
"json-schema-to-typescript": "11.0.2",
"p-queue": "6.6.2",
"node-fetch": "3.3.0",
"p-queue": "7.3.0",
"pngjs": "6.0.0",
"rollup": "3.5.0",
"selenium-webdriver": "4.6.1",
"rollup": "3.5.1",
"selenium-webdriver": "4.7.0",
"tslib": "2.4.1",
"typescript": "4.9.3"
},
Expand Down
14 changes: 11 additions & 3 deletions components/assistive-webdriver/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,24 @@ module.exports = [
output: [
{
file: "./dist/server/index.js",
format: "cjs"
format: "cjs",
inlineDynamicImports: true
},
{
file: "./dist/server/index.mjs",
format: "esm"
format: "esm",
inlineDynamicImports: true
}
],
input: "./src/server/index.ts",
external: externalDependencies,
plugins
plugins,
onwarn(warning, warn) {
if (warning.code === "THIS_IS_UNDEFINED") {
return; // ignore this warning
}
warn(warning);
}
},
{
output: [
Expand Down
2 changes: 1 addition & 1 deletion components/assistive-webdriver/samples/ariatemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const {
"awd:vm-config": "jaws"
})
.forBrowser(Browser.INTERNET_EXPLORER)
.usingServer("http://localhost:3000/")
.usingServer("http://127.0.0.1:3000/")
.build();
try {
addScreenReaderTextListener(driver, message =>
Expand Down
2 changes: 1 addition & 1 deletion components/assistive-webdriver/samples/googleSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { Builder, By, Key, Browser, until } = require("selenium-webdriver");
(async function () {
const driver = await new Builder()
.forBrowser(Browser.CHROME)
.usingServer("http://localhost:3000/")
.usingServer("http://127.0.0.1:3000/")
.build();
try {
await driver.get("https://www.google.com");
Expand Down
2 changes: 1 addition & 1 deletion components/assistive-webdriver/src/tester/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { sigintWin32 } from "../server/sigintWin32";
server: {
type: "string",
alias: "s",
default: "http://localhost:3000"
default: "http://127.0.0.1:3000"
},
browser: {
type: "string",
Expand Down
2 changes: 2 additions & 0 deletions components/vm-providers/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
*/

module.exports = {
transformIgnorePatterns: [],
transform: {
"\\.m?js$": "../../tools/jestEsmTransform",
"^.+\\.ts$": [
"../../tools/code-coverage/jestTransform",
{ tsconfig: "tsconfig.test.json" }
Expand Down
2 changes: 1 addition & 1 deletion components/vm-providers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/uuid": "9.0.0",
"jest": "29.3.1",
"json-schema-to-typescript": "11.0.2",
"rollup": "3.5.0",
"rollup": "3.5.1",
"tslib": "2.4.1",
"typescript": "4.9.3"
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"devDependencies": {
"@babel/core": "7.20.5",
"@babel/plugin-syntax-typescript": "7.20.0",
"@babel/plugin-transform-modules-commonjs": "7.19.6",
"@microsoft/api-documenter": "7.19.25",
"@typescript-eslint/eslint-plugin": "5.45.0",
"@typescript-eslint/parser": "5.45.0",
Expand Down
Loading