@stacksjs/faker 0.57.4 → 0.58.20

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.
package/README.md CHANGED
@@ -1,32 +1,23 @@
1
- # Stacks AI
1
+ # Stacks Faker
2
2
 
3
- This package contains a pretty wrapper for the OpenAI API.
3
+ This package provides a simple API wrapper for generating fake data.
4
4
 
5
5
  ## ☘️ Features
6
6
 
7
- - 🔎 Pretty API wrapper
8
- - 🤷🏼‍♂️ git Diff Interpreter
9
- - 🪐 GitHub integration
10
- - 💨 Zero-config
11
- - 🐶 Buddy CLI commands
12
-
13
- ## TODO
14
-
15
- - [ ] Driver: OpenAI
7
+ -
16
8
 
17
9
  ## 🤖 Usage
18
10
 
19
11
  ```bash
20
- pnpm i -D @stacksjs/ai
12
+ bun install -d @stacksjs/faker
21
13
  ```
22
14
 
23
15
  You may now use:
24
16
 
25
17
  ```ts
26
- import { useAI } from '@stacksjs/ai'
18
+ import { faker } from '@stacksjs/faker'
27
19
 
28
- const client = useAI()
29
- // client...
20
+ faker.name()
30
21
  ```
31
22
 
32
23
  Learn more in the docs.
@@ -34,7 +25,7 @@ Learn more in the docs.
34
25
  ## 🧪 Testing
35
26
 
36
27
  ```bash
37
- pnpm test
28
+ bun test
38
29
  ```
39
30
 
40
31
  ## 📈 Changelog
@@ -53,10 +44,10 @@ For help, discussion about best practices, or any other conversation that would
53
44
 
54
45
  For casual chit-chat with others using this package:
55
46
 
56
- [Join the Stacks Discord Server](https://discord.ow3.org)
47
+ [Join the Stacks Discord Server](https://discord.gg/stacksjs)
57
48
 
58
49
  ## 📄 License
59
50
 
60
51
  The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
61
52
 
62
- Made with ❤️
53
+ Made with 💙
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ // @bun
2
+ // src/index.ts
3
+ import {faker} from "@faker-js/faker";
4
+ export {
5
+ faker
6
+ };
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@stacksjs/faker",
3
3
  "type": "module",
4
- "version": "0.57.4",
5
- "packageManager": "pnpm@8.6.6",
4
+ "version": "0.58.20",
6
5
  "description": "Faker functions.",
7
6
  "author": "Chris Breuer",
8
7
  "license": "MIT",
9
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
10
- "homepage": "https://github.com/stacksjs/stacks/tree/main/.stacks/core/faker#readme",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/faker#readme",
11
10
  "repository": {
12
11
  "type": "git",
13
12
  "url": "git+https://github.com/stacksjs/stacks.git",
14
- "directory": "./.stacks/core/faker"
13
+ "directory": "./storage/framework/core/src/faker"
15
14
  },
16
15
  "bugs": {
17
16
  "url": "https://github.com/stacksjs/stacks/issues"
@@ -25,30 +24,38 @@
25
24
  ],
26
25
  "exports": {
27
26
  ".": {
28
- "types": "./dist/index.d.ts",
29
- "import": "./dist/index.mjs"
27
+ "bun": "./src/index.ts",
28
+ "import": "./dist/index.js"
29
+ },
30
+ "./*": {
31
+ "bun": "./src/*",
32
+ "import": "./dist/*"
30
33
  }
31
34
  },
32
- "module": "dist/index.mjs",
35
+ "module": "dist/index.js",
33
36
  "types": "dist/index.d.ts",
34
37
  "contributors": [
35
- "Chris Breuer <chris@ow3.org>"
38
+ "Chris Breuer <chris@stacksjs.org>"
36
39
  ],
37
40
  "files": [
38
- "dist",
39
- "README.md"
41
+ "README.md",
42
+ "dist"
40
43
  ],
44
+ "scripts": {
45
+ "build": "bun --bun build.ts",
46
+ "typecheck": "bun --bun tsc --noEmit",
47
+ "prepublishOnly": "bun --bun run build"
48
+ },
41
49
  "peerDependencies": {
42
- "@faker-js/faker": "^8.0.2",
43
- "@stacksjs/cli": "0.57.4",
44
- "@stacksjs/config": "0.57.4"
50
+ "@stacksjs/cli": "workspace:*",
51
+ "@stacksjs/config": "workspace:*"
45
52
  },
46
- "devDependencies": {
47
- "@stacksjs/development": "0.57.4"
53
+ "dependencies": {
54
+ "@faker-js/faker": "^8.3.1",
55
+ "@stacksjs/cli": "workspace:*",
56
+ "@stacksjs/config": "workspace:*"
48
57
  },
49
- "scripts": {
50
- "build": "unbuild",
51
- "dev": "unbuild --stub",
52
- "typecheck": "tsc --noEmit"
58
+ "devDependencies": {
59
+ "@stacksjs/development": "workspace:*"
53
60
  }
54
- }
61
+ }
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- # MIT License
2
-
3
- Copyright (c) 2022 Open Web Foundation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { faker } from '@faker-js/faker';
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- export { faker } from "@faker-js/faker";