nodelistparser 0.3.0 → 0.3.1

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.
@@ -52,7 +52,7 @@ interface TrojanBasicConfig extends SharedConfigBase, TlsSharedConfig {
52
52
  /** udp-relay */
53
53
  udp: boolean;
54
54
  }
55
- interface TuicConfig extends SharedConfigBase {
55
+ interface TuicConfig extends SharedConfigBase, TlsSharedConfig {
56
56
  type: 'tuic';
57
57
  sni: string;
58
58
  uuid: string;
@@ -152,6 +152,7 @@ declare function encode(config: SupportedConfig): {
152
152
  down?: undefined;
153
153
  } | {
154
154
  tfo: boolean | undefined;
155
+ 'skip-cert-verify': boolean;
155
156
  udp: boolean;
156
157
  token: string;
157
158
  name: string;
@@ -172,9 +173,9 @@ declare function encode(config: SupportedConfig): {
172
173
  ports?: undefined;
173
174
  password?: undefined;
174
175
  down?: undefined;
175
- 'skip-cert-verify'?: undefined;
176
176
  } | {
177
177
  tfo: boolean | undefined;
178
+ 'skip-cert-verify': boolean;
178
179
  udp: boolean;
179
180
  password: string;
180
181
  name: string;
@@ -194,7 +195,6 @@ declare function encode(config: SupportedConfig): {
194
195
  network?: undefined;
195
196
  ports?: undefined;
196
197
  down?: undefined;
197
- 'skip-cert-verify'?: undefined;
198
198
  } | {
199
199
  tfo: boolean | undefined;
200
200
  name: string;
package/dist/cjs/index.js CHANGED
@@ -145,6 +145,7 @@ function decode$1(raw) {
145
145
  uuid: restDetails.uuid,
146
146
  alpn: restDetails.alpn,
147
147
  token: restDetails.token,
148
+ skipCertVerify: restDetails['skip-cert-verify'],
148
149
  ...shared
149
150
  };
150
151
  }
@@ -426,6 +427,7 @@ function encode(config) {
426
427
  } : {
427
428
  password: config.password
428
429
  },
430
+ 'skip-cert-verify': config.skipCertVerify,
429
431
  udp: true,
430
432
  ...shared
431
433
  };
@@ -52,7 +52,7 @@ interface TrojanBasicConfig extends SharedConfigBase, TlsSharedConfig {
52
52
  /** udp-relay */
53
53
  udp: boolean;
54
54
  }
55
- interface TuicConfig extends SharedConfigBase {
55
+ interface TuicConfig extends SharedConfigBase, TlsSharedConfig {
56
56
  type: 'tuic';
57
57
  sni: string;
58
58
  uuid: string;
@@ -152,6 +152,7 @@ declare function encode(config: SupportedConfig): {
152
152
  down?: undefined;
153
153
  } | {
154
154
  tfo: boolean | undefined;
155
+ 'skip-cert-verify': boolean;
155
156
  udp: boolean;
156
157
  token: string;
157
158
  name: string;
@@ -172,9 +173,9 @@ declare function encode(config: SupportedConfig): {
172
173
  ports?: undefined;
173
174
  password?: undefined;
174
175
  down?: undefined;
175
- 'skip-cert-verify'?: undefined;
176
176
  } | {
177
177
  tfo: boolean | undefined;
178
+ 'skip-cert-verify': boolean;
178
179
  udp: boolean;
179
180
  password: string;
180
181
  name: string;
@@ -194,7 +195,6 @@ declare function encode(config: SupportedConfig): {
194
195
  network?: undefined;
195
196
  ports?: undefined;
196
197
  down?: undefined;
197
- 'skip-cert-verify'?: undefined;
198
198
  } | {
199
199
  tfo: boolean | undefined;
200
200
  name: string;
package/dist/es/index.mjs CHANGED
@@ -145,6 +145,7 @@ function decode$1(raw) {
145
145
  uuid: restDetails.uuid,
146
146
  alpn: restDetails.alpn,
147
147
  token: restDetails.token,
148
+ skipCertVerify: restDetails['skip-cert-verify'],
148
149
  ...shared
149
150
  };
150
151
  }
@@ -426,6 +427,7 @@ function encode(config) {
426
427
  } : {
427
428
  password: config.password
428
429
  },
430
+ 'skip-cert-verify': config.skipCertVerify,
429
431
  udp: true,
430
432
  ...shared
431
433
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodelistparser",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Surge / Mihomo (Clash.Meta) nodelist / proxy provider parser and generator.",
5
5
  "repository": {
6
6
  "type": "git",