diff --git a/.changeset/many-boats-peel.md b/.changeset/many-boats-peel.md deleted file mode 100644 index 006c3ca..0000000 --- a/.changeset/many-boats-peel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@lightpanda/browser-test": patch ---- - -New test diff --git a/packages/browser/CHANGELOG.md b/packages/browser/CHANGELOG.md index abcd2f5..81b20d1 100644 --- a/packages/browser/CHANGELOG.md +++ b/packages/browser/CHANGELOG.md @@ -1,5 +1,11 @@ # @lightpanda/browser +## 1.0.1 + +### Patch Changes + +- [`3059859`](https://github.com/lightpanda-io/node-packages/commit/3059859307ced46bb7868626f9644cad2444c093) Thanks [@nrigaudiere](https://github.com/nrigaudiere)! - Init package + ## 1.0.0 ### Major Changes diff --git a/packages/browser/cli/main.ts b/packages/browser/cli/main.ts index 42dec01..d8ac372 100644 --- a/packages/browser/cli/main.ts +++ b/packages/browser/cli/main.ts @@ -1,5 +1,20 @@ #!/usr/bin/env node +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import yargs from 'yargs' import { hideBin } from 'yargs/helpers' diff --git a/packages/browser/index.ts b/packages/browser/index.ts index 7005a03..c2d5456 100644 --- a/packages/browser/index.ts +++ b/packages/browser/index.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { fetch } from './src/fetch' import { serve } from './src/serve' diff --git a/packages/browser/package.json b/packages/browser/package.json index 8c61a08..5af9d4e 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -1,6 +1,6 @@ { "name": "@lightpanda/browser", - "version": "1.0.0", + "version": "1.0.1", "description": "Lightpanda for Node.js", "main": "./dist/index.js", "module": "./dist/index.mjs", @@ -34,7 +34,7 @@ "bugs": { "url": "https://github.com/lightpanda-io/node-packages/issues" }, - "homepage": "https://github.com/lightpanda-io/node-packages/tree/main#readme", + "homepage": "https://github.com/lightpanda-io/node-packages/tree/main/packages/browser#readme", "devDependencies": { "@biomejs/biome": "^1.9.4", "@types/node": "22.15.32", diff --git a/packages/browser/scripts/postinstall.ts b/packages/browser/scripts/postinstall.ts index db8e3f4..71de3f5 100644 --- a/packages/browser/scripts/postinstall.ts +++ b/packages/browser/scripts/postinstall.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { download } from './../src/download' download() diff --git a/packages/browser/src/download.ts b/packages/browser/src/download.ts index b8acf21..75b0281 100644 --- a/packages/browser/src/download.ts +++ b/packages/browser/src/download.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { constants, chmodSync, createWriteStream, existsSync, mkdirSync } from 'node:fs' import https from 'node:https' import { arch, exit, platform } from 'node:process' diff --git a/packages/browser/src/fetch.ts b/packages/browser/src/fetch.ts index 9b0175a..2d00d00 100644 --- a/packages/browser/src/fetch.ts +++ b/packages/browser/src/fetch.ts @@ -1,5 +1,21 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { execSync } from 'node:child_process' import { getExecutablePath, validateUrl } from './utils' + /** * @typedef LightpandaFetchOptions * @type {object} diff --git a/packages/browser/src/serve.ts b/packages/browser/src/serve.ts index c4d608e..d8307b5 100644 --- a/packages/browser/src/serve.ts +++ b/packages/browser/src/serve.ts @@ -1,5 +1,21 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import { type ChildProcessWithoutNullStreams, spawn } from 'node:child_process' import { getExecutablePath, validatePort, validateUrl } from './utils' + /** * @typedef LightpandaServeOptions * @type {object} diff --git a/packages/browser/src/utils.ts b/packages/browser/src/utils.ts index 02847c3..f2cffbd 100644 --- a/packages/browser/src/utils.ts +++ b/packages/browser/src/utils.ts @@ -1,3 +1,18 @@ +/** + * Copyright 2023-2025 Lightpanda (Selecy SAS) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import os from 'node:os' export const DEFAULT_CACHE_FOLDER = `${os.homedir()}/.cache/lightpanda-node`