New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hmpo-countries-lib

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hmpo-countries-lib - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

13

lib/index.js
'use strict';
const HmpoCachedModel = require('hmpo-cached-model');
const debug = require('debug')('hmpo:countries-cached-model');
const _ = require('underscore');

@@ -32,7 +33,12 @@

this._countryCache.on('change', this._indexCountries.bind(this));
this._policyCache.on('change', this._indexPolicies.bind(this));
this.on('change', this._indexCountries.bind(this));
}
on(event, handler) {
this._countryCache.on(event, handler);
this._policyCache.on(event, handler);
}
start() {
debug('start');
this._countryCache.start();

@@ -43,2 +49,3 @@ this._policyCache.start();

stop() {
debug('stop');
this._countryCache.stop();

@@ -57,2 +64,3 @@ this._policyCache.stop();

_indexCountries() {
debug('indexing countries');
let countries = this._countryCache.get('data');

@@ -68,2 +76,3 @@ this._residentCountries = _.filter(

_indexPolicies() {
debug('indexing policies');
let policies = this._policyCache.get('data');

@@ -70,0 +79,0 @@ this._policiesById = _.indexBy(policies, 'id');

2

package.json
{
"name": "hmpo-countries-lib",
"version": "1.0.1",
"version": "1.0.2",
"description": "Country lists",

@@ -5,0 +5,0 @@ "main": "index.js",

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