@flightdev/script 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +7 -1
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @flight-framework/script
1
+ # @flightdev/script
2
2
 
3
3
  Script loading optimization for improved Core Web Vitals.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @flight-framework/script
8
+ npm install @flightdev/script
9
9
  ```
10
10
 
11
11
  ## Quick Start
12
12
 
13
13
  ```tsx
14
- import { Script } from '@flight-framework/script/react';
14
+ import { Script } from '@flightdev/script/react';
15
15
 
16
16
  function App() {
17
17
  return (
@@ -37,7 +37,7 @@ function App() {
37
37
  ## React Component
38
38
 
39
39
  ```tsx
40
- import { Script } from '@flight-framework/script/react';
40
+ import { Script } from '@flightdev/script/react';
41
41
 
42
42
  // External script
43
43
  <Script src="https://example.com/script.js" strategy="afterInteractive" />
@@ -58,7 +58,7 @@ import { Script } from '@flight-framework/script/react';
58
58
  ## useScript Hook
59
59
 
60
60
  ```tsx
61
- import { useScript } from '@flight-framework/script/react';
61
+ import { useScript } from '@flightdev/script/react';
62
62
 
63
63
  function Widget() {
64
64
  const { loading, loaded, error } = useScript(
@@ -94,7 +94,7 @@ npm install @builder.io/partytown
94
94
  ### Configuration
95
95
 
96
96
  ```typescript
97
- import { partytown } from '@flight-framework/script/partytown';
97
+ import { partytown } from '@flightdev/script/partytown';
98
98
 
99
99
  const pt = partytown({
100
100
  debug: process.env.NODE_ENV === 'development',
@@ -109,7 +109,7 @@ const pt = partytown({
109
109
  ### Usage
110
110
 
111
111
  ```tsx
112
- import { Script } from '@flight-framework/script/react';
112
+ import { Script } from '@flightdev/script/react';
113
113
 
114
114
  // Runs in Web Worker via Partytown
115
115
  <Script
@@ -138,7 +138,7 @@ import {
138
138
  partytown,
139
139
  isPartytownReady,
140
140
  loadWithPartytown,
141
- } from '@flight-framework/script/partytown';
141
+ } from '@flightdev/script/partytown';
142
142
 
143
143
  // Check if Partytown is available
144
144
  if (isPartytownReady()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flightdev/script",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Agnostic script loading optimization with multiple strategies",
5
5
  "type": "module",
6
6
  "files": [
@@ -49,6 +49,12 @@
49
49
  "@types/react": "^19.0.6",
50
50
  "typescript": "^5.7.2"
51
51
  },
52
+ "homepage": "https://github.com/EliosLT/FlightDev",
53
+ "repository": {
54
+ "url": "https://github.com/EliosLT/FlightDev.git",
55
+ "directory": "packages/script",
56
+ "type": "git"
57
+ },
52
58
  "scripts": {
53
59
  "build": "tsc",
54
60
  "dev": "tsc --watch"