Skip to content

Commit

Permalink
chore: revert to @bundled-es-modules/cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Oct 11, 2024
1 parent 4af1423 commit 5511af1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
4 changes: 4 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
declare module '@bundled-es-modules/cookie' {
export * as default from 'cookie'
}

declare module '@bundled-es-modules/statuses' {
import * as statuses from 'statuses'
export default statuses
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
],
"sideEffects": false,
"dependencies": {
"@bundled-es-modules/cookie": "^2.0.0",
"@bundled-es-modules/statuses": "^1.0.1",
"@bundled-es-modules/tough-cookie": "^0.1.6",
"@inquirer/confirm": "^3.0.0",
Expand All @@ -141,7 +142,6 @@
"@types/cookie": "^0.6.0",
"@types/statuses": "^2.0.4",
"chalk": "^4.1.2",
"cookie": "^1.0.0",
"graphql": "^16.8.1",
"headers-polyfill": "^4.0.2",
"is-node-process": "^1.2.0",
Expand Down
22 changes: 14 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/utils/request/getRequestCookies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as cookieUtils from 'cookie'
import cookieUtils from '@bundled-es-modules/cookie'
import { cookieStore } from '../cookieStore'

function parseCookies(input: string): Record<string, string> {
Expand Down
2 changes: 1 addition & 1 deletion test/browser/graphql-api/cookies.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as cookieUtils from 'cookie'
import cookieUtils from '@bundled-es-modules/cookie'
import { test, expect } from '../playwright.extend'
import { gql } from '../../support/graphql'

Expand Down
2 changes: 1 addition & 1 deletion test/node/graphql-api/cookies.node.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @vitest-environment node
import * as cookieUtils from 'cookie'
import cookieUtils from '@bundled-es-modules/cookie'
import { graphql as executeGraphql, buildSchema } from 'graphql'
import { graphql, HttpResponse } from 'msw'
import { setupServer } from 'msw/node'
Expand Down

0 comments on commit 5511af1

Please sign in to comment.