Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

howsmydriving-nyc

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

howsmydriving-nyc - npm Package Compare versions

Comparing version 0.1.43 to 0.1.44

2

definitions/index.d.ts

@@ -1,1 +0,1 @@

export { Region } from './src/newyorkcity';
export { Factory } from './src/newyorkcity';
import { ICitation } from 'howsmydriving-utils';
import { ICollision } from 'howsmydriving-utils';
import { IRegion } from 'howsmydriving-utils';
import { Region } from 'howsmydriving-utils';
import { Region, RegionFactory, IStateStore } from 'howsmydriving-utils';
export declare class NewYorkCityRegionFactory extends RegionFactory {
createRegion(state_store: IStateStore): Promise<Region>;
}
export declare class NewYorkCity extends Region {
constructor(name: string);
constructor(state_store: IStateStore);
GetCitationsByPlate(plate: string, state: string): Promise<Array<ICitation>>;

@@ -12,4 +14,4 @@ ProcessCitationsForRequest(citations: ICitation[], query_count: number): Array<string>;

}
declare var RegionInstance: IRegion;
export { RegionInstance as default };
export { RegionInstance as Region };
declare let Factory: RegionFactory;
export { Factory as default };
export { Factory };

@@ -6,3 +6,3 @@ "use strict";

var newyorkcity_1 = require("./src/newyorkcity");
exports.Region = newyorkcity_1.Region;
exports.Factory = newyorkcity_1.Factory;
logging_2.log.info("howsmydriving-nyc: Module " + logging_1.__MODULE_NAME__ + " version '" + logging_1.__MODULE_VERSION__ + "' loaded.");

@@ -25,7 +25,19 @@ "use strict";

var parkingAndCameraViolationsText = 'Total __REGION__ parking and camera violations for #__LICENSE__: __COUNT__', violationsByYearText = 'Violations by year for #', violationsByStatusText = 'Violations by status for #', citationQueryText = 'License #__LICENSE__ has been queried __COUNT__ times.';
var NewYorkCityRegionFactory = /** @class */ (function (_super) {
__extends(NewYorkCityRegionFactory, _super);
function NewYorkCityRegionFactory() {
return _super !== null && _super.apply(this, arguments) || this;
}
NewYorkCityRegionFactory.prototype.createRegion = function (state_store) {
var region = new NewYorkCity(state_store);
return Promise.resolve(region);
};
return NewYorkCityRegionFactory;
}(howsmydriving_utils_3.RegionFactory));
exports.NewYorkCityRegionFactory = NewYorkCityRegionFactory;
var NewYorkCity = /** @class */ (function (_super) {
__extends(NewYorkCity, _super);
function NewYorkCity(name) {
var _this = _super.call(this, name) || this;
logging_2.log.debug("Creating instance " + _this.constructor.name + " Region for region " + logging_1.__REGION_NAME__ + ".");
function NewYorkCity(state_store) {
var _this = _super.call(this, logging_1.__REGION_NAME__, state_store) || this;
logging_2.log.debug("Creating instance of " + _this.name + " for region " + logging_1.__REGION_NAME__);
return _this;

@@ -210,5 +222,4 @@ }

}
var RegionInstance;
exports.default = RegionInstance;
exports.Region = RegionInstance;
exports.Region = exports.default = RegionInstance = new NewYorkCity(logging_1.__REGION_NAME__);
var Factory = new NewYorkCityRegionFactory();
exports.default = Factory;
exports.Factory = Factory;
{
"name": "howsmydriving-nyc",
"version": "0.1.43",
"version": "0.1.44",
"description": "NYC region plug-in for @HowsMyDrivingWA.",

@@ -15,3 +15,3 @@ "declaration": true,

"@google/maps": "^1.1.0",
"howsmydriving-utils": "^0.1.152",
"howsmydriving-utils": "^0.1.187",
"log4js": "^4.0.2",

@@ -18,0 +18,0 @@ "packpath": "^0.1.0",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc