Skip to content

Commit

Permalink
Merge pull request #65 from Diokuz/github-actions
Browse files Browse the repository at this point in the history
update all deps
  • Loading branch information
Diokuz authored Nov 25, 2022
2 parents d7413bd + 78926f9 commit 72d2aef
Show file tree
Hide file tree
Showing 4 changed files with 777 additions and 832 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npx tsc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teremock",
"version": "2.0.0",
"version": "2.0.2",
"description": "File-based real mocks request mocker for playwright",
"main": "dist",
"repository": {
Expand All @@ -24,35 +24,35 @@
"homepage": "https://github.com/Diokuz/teremock#readme",
"dependencies": {
"ci-info": "^3.7.0",
"debug": "^4.2.0",
"debug": "^4.3.4",
"lodash.ismatch": "^4.4.0",
"make-dir": "^3.1.0",
"query-string": "^6.13.6",
"query-string": "^7.1.1",
"signale": "^1.4.0",
"sprout-data": "^1.3.0",
"tslib": "^2.4.1"
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@types/debug": "^4.1.5",
"@types/express": "^4.17.8",
"@types/debug": "^4.1.7",
"@types/express": "^4.17.14",
"@types/jest": "^29.2.3",
"@types/lodash.ismatch": "^4.4.6",
"@types/node": "^14.14.3",
"@types/rimraf": "^3.0.0",
"@types/signale": "^1.4.1",
"@types/sinon": "^9.0.11",
"body-parser": "^1.19.0",
"express": "^4.17.1",
"got": "^11.8.0",
"@types/lodash.ismatch": "^4.4.7",
"@types/node": "^18.11.9",
"@types/rimraf": "^3.0.2",
"@types/signale": "^1.4.4",
"@types/sinon": "^10.0.13",
"body-parser": "^1.20.1",
"express": "^4.18.2",
"got": "^12.5.3",
"jest": "^29.3.1",
"prettier": "2.1.2",
"prettier": "2.8.0",
"rimraf": "^3.0.2",
"sinon": "^9.2.0",
"sinon": "^14.0.2",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3",
"wait-port": "^0.2.9",
"webpack": "^5.2.0",
"webpack-cli": "^4.1.0"
"wait-port": "^1.0.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion src/pw-driver/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function extractPlaywrightResponse(

logger(`got the response, sending it to teremock core`)

const { __meta } = (playwrightRequest as unknown) as { __meta?: Meta }
const { __meta } = playwrightRequest as unknown as { __meta?: Meta }

if (!__meta) {
signale.warn(`__meta was not found in playwrightRequest. Probably it was made before teremock.start()`)
Expand Down
Loading

0 comments on commit 72d2aef

Please sign in to comment.