@ywfe/fe-tools 1.0.2-beta.13 → 1.0.2-beta.2

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,30 +1,27 @@
1
1
  {
2
- "private": false,
3
2
  "name": "@ywfe/fe-tools",
4
- "version": "1.0.2-beta.13",
3
+ "version": "1.0.2-beta.2",
5
4
  "description": "工具函数库",
6
- "main": "./lib/ywfe-tools.esm.js",
7
- "module": "./lib/ywfe-tools.esm.js",
5
+ "main": "./dist/bundle.js",
6
+ "module": "./dist/bundle.js",
8
7
  "type": "module",
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "scripts": {
10
12
  "build": "rollup -c",
11
- "build:type": "tsc -p ./tsconfig.type.json",
12
- "prepublishOnly": "npm run build && npm run build:type",
13
- "test": "jest --coverage"
13
+ "prepublishOnly": "npm run build"
14
14
  },
15
- "repository": "ywfe",
16
- "author": {
17
- "name": "YWFE",
18
- "email": "ywfe@ywwl.com",
19
- "url": "http://ywfe.com"
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
20
18
  },
21
- "license": "MIT",
22
19
  "dependencies": {
23
- "crypto-js": "^4.0.0",
24
- "ramda": "^0.27.1",
25
- "strtok3": "^6.3.0",
26
- "token-types": "^4.2.0",
27
- "uuid": "^8.3.2"
20
+ "@ywfe/utils": "^0.10.74"
28
21
  },
29
- "gitHead": "795058c747c80a3a69f6904dccffb53c42acfcc7"
30
- }
22
+ "devDependencies": {
23
+ "typescript": "^5.4.5"
24
+ },
25
+ "author": "",
26
+ "license": "ISC"
27
+ }
package/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default as userInputToJson } from './userInputToJson'
2
- export { default as request } from './request'
package/jest.config.js DELETED
@@ -1,12 +0,0 @@
1
- module.exports = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'jsdom',
4
- moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
5
- rootDir: '.',
6
- roots: ['<rootDir>/src/'],
7
- testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?|ts?)$',
8
- transform: {
9
- '^.+\\.(t|j)s$': 'ts-jest',
10
- '^.+\\.(t|j)sx$': 'ts-jest',
11
- },
12
- };
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { default as userInputToJson } from './userInputToJson';
2
- export { default as request } from './request';
package/lib/request.d.ts DELETED
@@ -1,9 +0,0 @@
1
- interface RequestOptions {
2
- url: string;
3
- method?: string;
4
- params?: any;
5
- }
6
- declare function request({ input }: {
7
- input: RequestOptions;
8
- }): Promise<any>;
9
- export default request;
@@ -1,8 +0,0 @@
1
- interface userInput {
2
- userInput?: string;
3
- rules?: string;
4
- }
5
- declare function userInputToJson({ input }: {
6
- input: userInput;
7
- }): Promise<any>;
8
- export default userInputToJson;