@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/dist/index.d.mts +43 -4
- package/dist/index.d.ts +43 -4
- package/dist/index.js +14038 -4
- package/dist/index.mjs +14031 -3
- package/package.json +9 -3
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/.github/workflows/changesets.yml +0 -41
- package/.prettierignore +0 -11
- package/.prettierrc +0 -7
- package/src/constants.ts +0 -12
- package/src/images/icon-1024.png +0 -0
- package/src/images/icon-128.png +0 -0
- package/src/images/icon-16.png +0 -0
- package/src/images/icon-180.png +0 -0
- package/src/images/icon-192.png +0 -0
- package/src/images/icon-256.png +0 -0
- package/src/images/icon-32.png +0 -0
- package/src/images/icon-48.png +0 -0
- package/src/images/icon-512.png +0 -0
- package/src/images/icon-64.png +0 -0
- package/src/index.ts +0 -1
- package/src/types.d.ts +0 -14
- package/tsconfig.json +0 -12
- package/tsup.config.ts +0 -26
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fefade/common",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "1.0.
|
|
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",
|
package/.changeset/README.md
DELETED
|
@@ -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).
|
package/.changeset/config.json
DELETED
|
@@ -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
package/.prettierrc
DELETED
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
|
-
}
|
package/src/images/icon-1024.png
DELETED
|
Binary file
|
package/src/images/icon-128.png
DELETED
|
Binary file
|
package/src/images/icon-16.png
DELETED
|
Binary file
|
package/src/images/icon-180.png
DELETED
|
Binary file
|
package/src/images/icon-192.png
DELETED
|
Binary file
|
package/src/images/icon-256.png
DELETED
|
Binary file
|
package/src/images/icon-32.png
DELETED
|
Binary file
|
package/src/images/icon-48.png
DELETED
|
Binary file
|
package/src/images/icon-512.png
DELETED
|
Binary file
|
package/src/images/icon-64.png
DELETED
|
Binary file
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Constants from "./constants"
|
package/src/types.d.ts
DELETED
package/tsconfig.json
DELETED
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
|
-
})
|