country-state-city-nextjs
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -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`; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9983
134