@flightdev/babel-plugin-cache 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 +5 -5
  2. package/package.json +7 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # @flight-framework/babel-plugin-cache
1
+ # @flightdev/babel-plugin-cache
2
2
 
3
3
  Babel plugin for "use cache" directive in Flight Framework.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- pnpm add @flight-framework/babel-plugin-cache
8
+ pnpm add @flightdev/babel-plugin-cache
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -15,7 +15,7 @@ pnpm add @flight-framework/babel-plugin-cache
15
15
  ```javascript
16
16
  module.exports = {
17
17
  plugins: [
18
- ['@flight-framework/babel-plugin-cache', {
18
+ ['@flightdev/babel-plugin-cache', {
19
19
  defaultTTL: 3600,
20
20
  }],
21
21
  ],
@@ -34,7 +34,7 @@ async function getReviews(productId: string) {
34
34
  ### Output
35
35
 
36
36
  ```typescript
37
- import { cachedFn } from '@flight-framework/cache-components';
37
+ import { cachedFn } from '@flightdev/cache-components';
38
38
 
39
39
  const getReviews = cachedFn('getReviews', async (productId: string) => {
40
40
  return fetch(`/api/reviews/${productId}`).then(r => r.json());
@@ -46,4 +46,4 @@ const getReviews = cachedFn('getReviews', async (productId: string) => {
46
46
  | Option | Type | Default | Description |
47
47
  |--------|------|---------|-------------|
48
48
  | `defaultTTL` | number | 3600 | Default TTL in seconds |
49
- | `importSource` | string | `@flight-framework/cache-components` | Import source |
49
+ | `importSource` | string | `@flightdev/cache-components` | Import source |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flightdev/babel-plugin-cache",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Babel plugin for 'use cache' directive in Flight Framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -35,6 +35,12 @@
35
35
  "directive"
36
36
  ],
37
37
  "license": "MIT",
38
+ "homepage": "https://github.com/EliosLT/FlightDev",
39
+ "repository": {
40
+ "url": "https://github.com/EliosLT/FlightDev.git",
41
+ "directory": "packages/babel-plugin-cache",
42
+ "type": "git"
43
+ },
38
44
  "scripts": {
39
45
  "build": "tsup src/index.ts --format esm --dts",
40
46
  "dev": "tsup src/index.ts --format esm --dts --watch",