@internetdata/internetdata 1.4.0 → 1.5.0

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.ts CHANGED
@@ -2,5 +2,5 @@ export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
2
2
  export type { DownloadDestination, DownloadsOptions, Options } from './client.js';
3
3
  export { InternetDataError } from './errors.js';
4
4
  export type { ErrorKind } from './errors.js';
5
- export { DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
6
- export type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
5
+ export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
6
+ export type { Database, DatabaseFormat, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DatasetFormat, DbChecksums, Download, LicenseType, Standing, } from './types.js';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { InternetData, DatabaseApi, DEFAULT_BASE_URL } from './client.js';
2
2
  export { InternetDataError } from './errors.js';
3
- export { DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
3
+ export { DATABASE_FORMATS, DATASET_FORMATS, LICENSE_TYPES, STANDINGS } from './types.js';
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,11 +1,19 @@
1
1
  import type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download } from './generated/types.gen.js';
2
2
  export type { Database, DatabaseMetadata, DatabaseMetadataColumn, DatabaseVersion, DbChecksums, Download, };
3
3
  /** A file format one version of a database is built in. */
4
- export type DatasetFormat = DatabaseVersion['formats'][number];
4
+ export type DatabaseFormat = DatabaseVersion['formats'][number];
5
+ /**
6
+ * @deprecated Use {@link DatabaseFormat}. Kept so existing imports keep
7
+ * compiling; this brand's Java, .NET and Swift SDKs have always called it
8
+ * `DatabaseFormat`, and so does every VPNDetection SDK.
9
+ */
10
+ export type DatasetFormat = DatabaseFormat;
5
11
  /** Where your organization's licence for a database family stands today. */
6
12
  export type Standing = Database['standing'];
7
13
  /** What a licence permits you to do with the data. Absent when there is no licence. */
8
14
  export type LicenseType = NonNullable<Database['license_type']>;
9
- export declare const DATASET_FORMATS: readonly DatasetFormat[];
15
+ export declare const DATABASE_FORMATS: readonly DatabaseFormat[];
16
+ /** @deprecated Use {@link DATABASE_FORMATS}. */
17
+ export declare const DATASET_FORMATS: readonly DatabaseFormat[];
10
18
  export declare const STANDINGS: readonly Standing[];
11
19
  export declare const LICENSE_TYPES: readonly LicenseType[];
package/dist/types.js CHANGED
@@ -2,7 +2,9 @@
2
2
  // wants to validate or enumerate rather than switch. Each is TYPED by the
3
3
  // generated union, so a value the spec does not define will not compile; that a
4
4
  // value is MISSING is what the shared conformance corpus pins.
5
- export const DATASET_FORMATS = ['csvgz', 'mmdb'];
5
+ export const DATABASE_FORMATS = ['csvgz', 'mmdb'];
6
+ /** @deprecated Use {@link DATABASE_FORMATS}. */
7
+ export const DATASET_FORMATS = DATABASE_FORMATS;
6
8
  export const STANDINGS = ['licensed', 'expired', 'unlicensed'];
7
9
  export const LICENSE_TYPES = [
8
10
  'evaluation', 'standard', 'redistribute',
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAiBA,+EAA+E;AAC/E,0EAA0E;AAC1E,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,eAAe,GAA6B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,SAAS,GAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,aAAa,GAA2B;IACjD,YAAY,EAAE,UAAU,EAAE,cAAc;CAC3C,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,+EAA+E;AAC/E,0EAA0E;AAC1E,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AAE7E,gDAAgD;AAChD,MAAM,CAAC,MAAM,eAAe,GAA8B,gBAAgB,CAAC;AAC3E,MAAM,CAAC,MAAM,SAAS,GAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AACpF,MAAM,CAAC,MAAM,aAAa,GAA2B;IACjD,YAAY,EAAE,UAAU,EAAE,cAAc;CAC3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetdata/internetdata",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Official Node.js client library for the InternetData API. Download, verify and inspect licensed IP database files.",
5
5
  "type": "module",
6
6
  "license": "MIT",