Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .changeset/little-frogs-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@getlang/ast": patch
"@getlang/get": patch
"@getlang/lib": patch
"@getlang/parser": patch
"@getlang/walker": patch
---

fix publishing
1 change: 0 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- uses: actions/checkout@v7
- uses: oven-sh/setup-bun@v2
- run: bun install -g npm@latest
- run: npm -v && node -v
- run: bun install --frozen-lockfile
- run: bun --filter @getlang/parser compile
- uses: changesets/action@v2.1.2
Expand Down
13 changes: 5 additions & 8 deletions test/request.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,22 +220,19 @@ describe('request', () => {
const [call] = (mockFetch as any).mock.calls
const hdrs: Headers = call[1].headers
const ct = hdrs.get('content-type')
expect(ct).toMatch(
/multipart\/form-data; boundary=----WebKitFormBoundary[0-9a-f]{32}/,
)

const boundary = ct?.split('boundary=-')[1]
const [k, v] = ct?.split('=') || []
expect(k).toEqual('multipart/form-data; boundary')

const body = dedent`
---${boundary}
--${v}
Content-Disposition: form-data; name="username"

admin
---${boundary}
--${v}
Content-Disposition: form-data; name="password"

test
---${boundary}--\n
--${v}--\n
`

expect(mockFetch).toHaveServed('https://example.com/login', {
Expand Down
3 changes: 2 additions & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"types": ["bun"]
"types": ["bun"],
"rootDir": "."
}
}
6 changes: 4 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"compilerOptions": {
"customConditions": ["bun"],
"rootDir": "${configDir}/src",
"outDir": "${configDir}/dist",

// Environment setup & latest features
"lib": ["esnext", "dom", "dom.iterable"],
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
Expand All @@ -14,7 +16,7 @@
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"rewriteRelativeImportExtensions": true,

// Best practices
"strict": true,
Expand Down
Loading