@fefade/common 1.0.1 → 1.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fefade/common",
3
- "description": "Shared images and constants",
4
- "version": "1.0.1",
3
+ "description": "Containing common resources, constants, images, and utility functions that are used across various projects. This package aims to promote reusability and maintain consistency across different applications by centralizing commonly used assets and code.",
4
+ "version": "1.0.3",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -9,6 +9,10 @@
9
9
  "main": "dist/index.js",
10
10
  "module": "dist/index.mjs",
11
11
  "types": "dist/index.d.ts",
12
+ "files": [
13
+ "dist",
14
+ "LICENSE"
15
+ ],
12
16
  "exports": {
13
17
  ".": {
14
18
  "import": "./dist/index.mjs",
@@ -34,8 +38,10 @@
34
38
  "@changesets/cli": "^2.30.0",
35
39
  "@types/node": "^25.5.2",
36
40
  "prettier": "^3.8.1",
41
+ "rate-limiter-flexible": "^10.0.1",
37
42
  "tsup": "^8.5.1",
38
- "typescript": "^5.9.3"
43
+ "typescript": "^5.9.3",
44
+ "zod": "^4.3.6"
39
45
  },
40
46
  "scripts": {
41
47
  "ci:publish": "pnpm publish -r",
@@ -1,8 +0,0 @@
1
- # Changesets
2
-
3
- Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
- with multi-package repos, or single-package repos to help you version and publish your code. You can
5
- find the full documentation for it [in our repository](https://github.com/changesets/changesets).
6
-
7
- We have a quick list of common questions to get you started engaging with this project in
8
- [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
3
- "changelog": "@changesets/cli/changelog",
4
- "commit": false,
5
- "fixed": [],
6
- "linked": [],
7
- "access": "restricted",
8
- "baseBranch": "main",
9
- "updateInternalDependencies": "patch",
10
- "ignore": []
11
- }
@@ -1,41 +0,0 @@
1
- name: Changesets
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- env:
9
- CI: true
10
-
11
- jobs:
12
- version:
13
- timeout-minutes: 15
14
- runs-on: ubuntu-latest
15
- steps:
16
- - name: Checkout code repository
17
- uses: actions/checkout@v4
18
-
19
- - name: Setup pnpm
20
- uses: pnpm/action-setup@v4
21
- with:
22
- version: 10.32.1
23
-
24
- - name: Setup node.js
25
- uses: actions/setup-node@v4
26
- with:
27
- node-version: 22.13.1
28
- cache: "pnpm"
29
-
30
- - name: Install dependencies
31
- run: pnpm install
32
-
33
- - name: Create and publish versions
34
- uses: changesets/action@v1
35
- with:
36
- commit: "chore: update versions"
37
- title: "chore: update versions"
38
- publish: pnpm ci:publish
39
- env:
40
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierignore DELETED
@@ -1,11 +0,0 @@
1
- # Package Managers
2
- package-lock.json
3
- pnpm-lock.yaml
4
- yarn.lock
5
- bun.lock
6
- bun.lockb
7
-
8
- # Miscellaneous
9
- /static/
10
- dist
11
- node_modules
package/.prettierrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "useTabs": true,
3
- "singleQuote": false,
4
- "semi": false,
5
- "trailingComma": "none",
6
- "printWidth": 80
7
- }
package/src/constants.ts DELETED
@@ -1,12 +0,0 @@
1
- export const ORG_NAME = "Fefade"
2
- export const PREFIX = "ff"
3
- export const DEFAULT_LOCALE = "en"
4
- export const SUPPORT_EMAIL = "support@fefade.com"
5
-
6
- export const URLS = {
7
- base: "https://fefade.com",
8
- auth: "https://auth.fefade.com",
9
- email: `mailto:${SUPPORT_EMAIL}`,
10
- play_store: "https://play.google.com/store/apps/dev?id=7701571155946352525",
11
- github: "https://github.com/fefade"
12
- }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * as Constants from "./constants"
package/src/types.d.ts DELETED
@@ -1,14 +0,0 @@
1
- declare module "*.png" {
2
- const value: string
3
- export default value
4
- }
5
-
6
- declare module "*.jpg" {
7
- const value: string
8
- export default value
9
- }
10
-
11
- declare module "*.svg" {
12
- const value: string
13
- export default value
14
- }
package/tsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "moduleResolution": "bundler",
6
- "esModuleInterop": true,
7
- "strict": true,
8
- "skipLibCheck": true,
9
- "declaration": true
10
- },
11
- "include": ["src"]
12
- }
package/tsup.config.ts DELETED
@@ -1,26 +0,0 @@
1
- import { defineConfig } from "tsup"
2
- import { join, resolve } from "path"
3
- import { copyFileSync, existsSync, mkdirSync, readdirSync } from "fs"
4
-
5
- export default defineConfig({
6
- entry: ["src/index.ts"],
7
- format: ["esm", "cjs"],
8
- dts: true,
9
- clean: true,
10
- outDir: "dist",
11
- esbuildOptions(options) {
12
- options.target = "esnext"
13
- },
14
- onSuccess: async () => {
15
- const srcImages = resolve("src/images")
16
- const distImages = resolve("dist/images")
17
-
18
- if (!existsSync(distImages)) {
19
- mkdirSync(distImages, { recursive: true })
20
- }
21
-
22
- for (const file of readdirSync(srcImages)) {
23
- copyFileSync(join(srcImages, file), join(distImages, file))
24
- }
25
- }
26
- })