Skip to content

Commit de91e95

Browse files
committed
v1.0.0 (#17)
1 parent 331c1b6 commit de91e95

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,15 @@ jobs:
486486
run: ls -R ./npm
487487
shell: bash
488488
- name: Publish
489-
if: contains(github.ref, "main")
489+
if: ${{ contains(github.ref, 'main') }}
490490
run: |
491491
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
492492
npm config set scope "@platformatic"
493-
npm config set provenance true
494-
if git log -1 --pretty=%B | grep "^v?[0-9]\+\.[0-9]\+\.[0-9]\+$";
493+
# npm config set provenance true
494+
if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
495495
then
496496
npm publish --access public
497-
elif git log -1 --pretty=%B | grep "^v?[0-9]\+\.[0-9]\+\.[0-9]\+";
497+
elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+-\.+";
498498
then
499499
npm publish --tag next --access public
500500
else

__test__/headers.spec.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ test('includes iterator methods', (t) => {
6262
const entries = Array.from(headers.entries())
6363
.sort((a, b) => a[0].localeCompare(b[0]))
6464
t.deepEqual(entries, [
65-
['Accept', ['application/json']],
66-
['Content-Type', ['application/json']]
65+
['Accept', 'application/json'],
66+
['Content-Type', 'application/json']
6767
])
6868

6969
const keys = Array.from(headers.keys()).sort()
@@ -77,7 +77,7 @@ test('includes iterator methods', (t) => {
7777
seen.push([name, values, map])
7878
})
7979
t.deepEqual(seen.sort((a, b) => a[0].localeCompare(b[0])), [
80-
['Accept', ['application/json'], headers],
81-
['Content-Type', ['application/json'], headers]
80+
['Accept', 'application/json', headers],
81+
['Content-Type', 'application/json', headers]
8282
])
8383
})

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ export declare class Response {
384384
* });
385385
* ```
386386
*/
387-
constructor(options: PhpResponseOptions)
387+
constructor(options?: PhpResponseOptions | undefined | null)
388388
/**
389389
* Get the HTTP status code for the response.
390390
*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@platformatic/php-node",
3-
"version": "0.3.0",
3+
"version": "1.0.0",
44
"main": "index.js",
55
"types": "index.d.ts",
66
"napi": {

0 commit comments

Comments
 (0)