Socket
Socket
Sign inDemoInstall

@tiermobility/tile38-ts

Package Overview
Dependencies
13
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

120

dist/responses.d.ts
import { GeoJSON, Polygon } from '@vpriem/geojson';
export declare type JSONResponse = {
ok: boolean;
elapsed: string;
err?: string;
};
declare type ExtendResponse<E extends object> = JSONResponse & E;
export declare type LatLon = {

@@ -6,2 +12,9 @@ lat: number;

};
export declare type Fields = Record<string, number>;
export declare type Meta = Record<string, string>;
interface Base {
id: string | number;
distance?: number;
fields?: number[];
}
export interface Bounds {

@@ -11,21 +24,11 @@ ne: LatLon;

}
export declare type Fields = Record<string, number>;
export declare type Meta = Record<string, string>;
export declare type JSONResponse = {
ok: boolean;
elapsed: string;
err?: string;
};
declare type ExtendResponse<E extends object> = JSONResponse & E;
export declare type ObjectResponse<O extends GeoJSON = GeoJSON, F extends Fields = Fields> = ExtendResponse<{
object: O;
export interface BoundsBase extends Base {
bounds: Bounds;
}
export declare type BoundsNeSwResponse<F extends Fields = Fields> = ExtendResponse<{
bounds: Bounds;
fields?: F;
}>;
export declare type ObjectsResponse<O extends GeoJSON = GeoJSON> = ExtendResponse<{
objects: {
object: O;
id: string | number;
distance?: number;
fields?: number[];
}[];
export declare type BoundsNeSwResponses = ExtendResponse<{
bounds: BoundsBase[];
count: number;

@@ -35,23 +38,21 @@ cursor: number;

}>;
export declare type StringObjectResponse<F extends Fields = Fields> = ExtendResponse<{
object: string;
export declare type BoundsResponse = ExtendResponse<{
bounds: Polygon;
}>;
export interface HashBase extends Base {
hash: string;
}
export declare type HashResponse<F = Fields> = ExtendResponse<{
hash: string;
fields?: F;
}>;
export declare type StringObjectsResponse = ExtendResponse<{
objects: {
id: string;
object: string;
}[];
export declare type HashesResponse = ExtendResponse<{
hashes: HashBase[];
count: number;
cursor: number;
fields?: string[];
}>;
export declare type IdsResponse = ExtendResponse<{
ids: string[];
count: number;
cursor: number;
}>;
export declare type CountResponse = ExtendResponse<{
count: number;
cursor: number;
}>;
export interface PointBase extends Base {
point: LatLon;
}
export declare type PointResponse<F extends Fields = Fields> = ExtendResponse<{

@@ -61,13 +62,4 @@ point: LatLon;

}>;
export declare type HashResponse<F = Fields> = ExtendResponse<{
hash: string;
fields?: F;
}>;
export declare type PointsResponse = ExtendResponse<{
points: {
point: LatLon;
id: string | number;
distance?: number;
fields?: number[];
}[];
points: PointBase[];
count: number;

@@ -77,9 +69,11 @@ cursor: number;

}>;
export declare type HashesResponse = ExtendResponse<{
hashes: {
hash: string;
id: string | number;
distance?: number;
fields?: number[];
}[];
export interface ObjectBase<O extends GeoJSON = GeoJSON> extends Base {
object: O;
}
export declare type ObjectResponse<O extends GeoJSON = GeoJSON, F extends Fields = Fields> = ExtendResponse<{
object: O;
fields?: F;
}>;
export declare type ObjectsResponse<O extends GeoJSON = GeoJSON> = ExtendResponse<{
objects: ObjectBase<O>[];
count: number;

@@ -89,20 +83,23 @@ cursor: number;

}>;
export declare type BoundsNeSwResponse<F extends Fields = Fields> = ExtendResponse<{
bounds: Bounds;
export declare type StringObjectResponse<F extends Fields = Fields> = ExtendResponse<{
object: string;
fields?: F;
}>;
export declare type BoundsNeSwResponses = ExtendResponse<{
bounds: {
bounds: Bounds;
id: string | number;
distance?: number;
fields?: number[];
export declare type StringObjectsResponse = ExtendResponse<{
objects: {
id: string;
object: string;
}[];
count: number;
cursor: number;
fields?: string[];
}>;
export declare type BoundsResponse = ExtendResponse<{
bounds: Polygon;
export declare type IdsResponse = ExtendResponse<{
ids: string[];
count: number;
cursor: number;
}>;
export declare type CountResponse = ExtendResponse<{
count: number;
cursor: number;
}>;
export declare type KeysResponse = ExtendResponse<{

@@ -147,2 +144,3 @@ keys: string[];

version: string;
pending_events: number;
};

@@ -149,0 +147,0 @@ }>;

{
"name": "@tiermobility/tile38-ts",
"version": "1.0.6",
"version": "1.0.7",
"description": "A Node.js Tile38 client written in TypeScript",

@@ -48,35 +48,35 @@ "main": "dist/index.js",

"dependencies": {
"@types/node": "18.7.16",
"@types/node": "18.11.13",
"@vpriem/geojson": "1.0.1",
"redis": "4.3.1"
"redis": "4.5.1"
},
"devDependencies": {
"@commitlint/cli": "17.1.2",
"@commitlint/config-conventional": "17.1.0",
"@semantic-release/changelog": "6.0.1",
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "8.0.6",
"@semantic-release/github": "8.0.7",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
"@types/jest": "27.4.1",
"@typescript-eslint/eslint-plugin": "5.36.2",
"@typescript-eslint/parser": "5.36.2",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"conventional-changelog-conventionalcommits": "5.0.0",
"coveralls": "3.1.1",
"devmoji": "2.3.0",
"eslint": "8.23.0",
"eslint": "8.29.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-typescript": "3.5.1",
"eslint-import-resolver-typescript": "3.5.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.1",
"husky": "8.0.2",
"jest": "27.5.1",
"lint-staged": "13.0.3",
"lint-staged": "13.1.0",
"pinst": "3.0.0",
"prettier": "2.7.1",
"prettier": "2.8.1",
"rimraf": "3.0.2",
"semantic-release": "19.0.5",
"ts-jest": "27.1.4",
"typescript": "4.7.4"
"typescript": "4.8.4"
},

@@ -83,0 +83,0 @@ "lint-staged": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc