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

country-state-city-nextjs

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-state-city-nextjs - npm Package Compare versions

Comparing version 8.0.0 to 8.1.0

4

cjs/index.d.ts

@@ -25,2 +25,6 @@ export interface countryProps {

export declare const getRuteCountrys: () => string;
export declare const getRuteCountryImg: (country: {
text: string;
id: number;
}) => string;
export declare const getRuteStates: () => string;

@@ -27,0 +31,0 @@ export declare const getRuteStatesByCountry: (country: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDataCitysByStateAndCountry = exports.getDataCitys = exports.getDataStatesByCountry = exports.getDataStates = exports.getDataCountrys = exports.getFetchCode = exports.getRuteCitysByStateAndCountry = exports.getRuteCitys = exports.getRuteStatesByCountry = exports.getRuteStates = exports.getRuteCountrys = exports.getRuteDir = exports.parseNameFolder = void 0;
exports.getDataCitysByStateAndCountry = exports.getDataCitys = exports.getDataStatesByCountry = exports.getDataStates = exports.getDataCountrys = exports.getFetchCode = exports.getRuteCitysByStateAndCountry = exports.getRuteCitys = exports.getRuteStatesByCountry = exports.getRuteStates = exports.getRuteCountryImg = exports.getRuteCountrys = exports.getRuteDir = exports.parseNameFolder = void 0;
const parseNameFolder = (e) => {

@@ -23,2 +23,6 @@ return `${e.id}_${e.text}`

exports.getRuteCountrys = getRuteCountrys;
const getRuteCountryImg = (country) => {
return `${(0, exports.getRuteDir)()}/country/${(0, exports.parseNameFolder)(country)}/img.png`;
};
exports.getRuteCountryImg = getRuteCountryImg;
const getRuteStates = () => {

@@ -25,0 +29,0 @@ return `${(0, exports.getRuteDir)()}/states.json`;

2

package.json
{
"name": "country-state-city-nextjs",
"version": "8.0.0",
"version": "8.1.0",
"description": "Get all countrys, states and citys of world",

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

@@ -27,3 +27,3 @@ # country-state-city-nextjs

getDataCountrys,
getDataCountrysWithImg,
getRuteCountryImg,
getDataStates,

@@ -30,0 +30,0 @@ getDataStatesByCountry,

Sorry, the diff of this file is not supported yet

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