@deafwave/osrs-botmaker-config-manager 0.2.6 → 0.2.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-config-manager",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "author": {
5
5
  "name": "CodySimonds65",
6
6
  "url": "https://github.com/CodySimonds65"
@@ -26,23 +26,17 @@
26
26
  "access": "public",
27
27
  "registry": "https://registry.npmjs.org"
28
28
  },
29
- "main": "./dist/index.js",
30
- "types": "./dist/index.d.ts",
29
+ "main": "./dist/index.npm.js",
30
+ "types": "./dist/index.npm.d.ts",
31
31
  "exports": {
32
32
  ".": {
33
- "types": "./dist/index.d.ts",
34
- "default": "./dist/index.js"
33
+ "types": "./dist/index.npm.d.ts",
34
+ "default": "./dist/index.npm.js"
35
35
  }
36
36
  },
37
37
  "files": [
38
38
  "dist"
39
39
  ],
40
- "scripts": {
41
- "build": "tsc -p tsconfig.json",
42
- "test": "jest",
43
- "lint": "eslint .",
44
- "lint:fix": "eslint . --fix"
45
- },
46
40
  "peerDependencies": {
47
41
  "@deafwave/osrs-botmaker-types": "^0.7.34"
48
42
  },
@@ -77,5 +71,11 @@
77
71
  "typescript": "5.2.2",
78
72
  "typescript-eslint": "^7.1.1",
79
73
  "typescript-transform-paths": "^3.5.5"
74
+ },
75
+ "scripts": {
76
+ "build": "tsc -p tsconfig.json",
77
+ "test": "jest",
78
+ "lint": "eslint .",
79
+ "lint:fix": "eslint . --fix"
80
80
  }
81
- }
81
+ }
@@ -1,2 +0,0 @@
1
- export declare const parseStringArrayValue: (rawValue: string) => string[];
2
- export declare const serializeStringArrayValue: (values: string[]) => string;
@@ -1,19 +0,0 @@
1
- import { splitCsv } from './split-csv.js';
2
- const isStringArray = (value) => Array.isArray(value) && value.every((entry) => typeof entry === 'string');
3
- export const parseStringArrayValue = (rawValue) => {
4
- const trimmed = rawValue.trim();
5
- if (!trimmed) {
6
- return [];
7
- }
8
- try {
9
- const parsed = JSON.parse(trimmed);
10
- if (isStringArray(parsed)) {
11
- return parsed;
12
- }
13
- }
14
- catch {
15
- // Fall back to legacy CSV storage.
16
- }
17
- return splitCsv(rawValue);
18
- };
19
- export const serializeStringArrayValue = (values) => JSON.stringify(values);