monagree-locs 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/classes.d.ts +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/locs.d.ts +1 -0
- package/package.json +2 -1
- package/tsconfig.json +2 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Monagree Location Picker
|
|
2
2
|
|
|
3
|
+
To install, run:
|
|
4
|
+
|
|
5
|
+
> npm install monagree-locs
|
|
6
|
+
|
|
3
7
|
> Only showing locations in Nigeria for now
|
|
4
8
|
|
|
5
9
|
Please enjoy this accurate & up-to-date location package from the open source team at Monagree. Monagree provides tools for devs to build ecommerce and logistics websites easily. Check out our javascript framework (CLI) on npm [monagree-tools](https://www.npmjs.com/package/monagree-tools "Monagree JS Framework").
|
package/dist/index.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a1_0x48b17d=a1_0x5d25;(function(_0x27e512,_0x48dd2c){var _0x1237b6=a1_0x5d25,_0x451e73=_0x27e512();while(!![]){try{var _0x4fa447=-parseInt(_0x1237b6(0x103))/0x1*(parseInt(_0x1237b6(0xfa))/0x2)+-parseInt(_0x1237b6(0x108))/0x3*(-parseInt(_0x1237b6(0xf6))/0x4)+parseInt(_0x1237b6(0xf8))/0x5*(parseInt(_0x1237b6(0x10a))/0x6)+-parseInt(_0x1237b6(0x100))/0x7+parseInt(_0x1237b6(0xfd))/0x8+parseInt(_0x1237b6(0xf9))/0x9+parseInt(_0x1237b6(0x107))/0xa*(-parseInt(_0x1237b6(0xf7))/0xb);if(_0x4fa447===_0x48dd2c)break;else _0x451e73['push'](_0x451e73['shift']());}catch(_0x212ab7){_0x451e73['push'](_0x451e73['shift']());}}}(a1_0x24c5,0x9bfd9));function a1_0x24c5(){var _0x4511e6=['3TZWCQu','lga','6KgAftB','mLoc','4605628EDZiIk','187aXkYKh','5465815OLskOG','3699054BzfGzp','2mLqkGA','lgas','./locs','4795568nkWAus','hasOwnProperty','push','7123305vDRWkI','getAllStatesInNigeria','defineProperty','623299UFHTak','getLgasByState','./classes','locs','573630tpJDbn'];a1_0x24c5=function(){return _0x4511e6;};return a1_0x24c5();}Object[a1_0x48b17d(0x102)](exports,'__esModule',{'value':!![]}),exports[a1_0x48b17d(0x104)]=exports[a1_0x48b17d(0x101)]=void 0x0;var classes_1=require(a1_0x48b17d(0x105)),locs_1=require(a1_0x48b17d(0xfc));function getAllStatesInNigeria(){var _0x1383e5=a1_0x48b17d,_0x523f4e=[];for(var _0x2cae05 in locs_1[_0x1383e5(0x106)]){if(locs_1[_0x1383e5(0x106)][_0x1383e5(0xfe)](_0x2cae05)){var _0x52bf56=locs_1[_0x1383e5(0x106)][_0x2cae05];delete _0x52bf56[_0x1383e5(0x109)],_0x523f4e[_0x1383e5(0xff)](new classes_1[(_0x1383e5(0x10b))](_0x2cae05,_0x52bf56));}}return _0x523f4e;}exports[a1_0x48b17d(0x101)]=getAllStatesInNigeria;function a1_0x5d25(_0x5a70b9,_0x5219b5){var _0x24c5d8=a1_0x24c5();return a1_0x5d25=function(_0x5d2502,_0x24bd46){_0x5d2502=_0x5d2502-0xf6;var _0x1f7e0d=_0x24c5d8[_0x5d2502];return _0x1f7e0d;},a1_0x5d25(_0x5a70b9,_0x5219b5);}function getLgasByState(_0xc36031){var _0x62101d=a1_0x48b17d,_0x2f8e9e=[],_0x531650=locs_1[_0x62101d(0x106)][_0xc36031];if(_0x531650)for(var _0x3f9942 in _0x531650[_0x62101d(0xfb)]){if(_0x531650[_0x62101d(0xfb)][_0x62101d(0xfe)](_0x3f9942)){var _0x2a41c6=_0x531650[_0x62101d(0xfb)][_0x3f9942];_0x2f8e9e[_0x62101d(0xff)](new classes_1[(_0x62101d(0x10b))](_0x3f9942,_0x2a41c6));}}return _0x2f8e9e;}exports[a1_0x48b17d(0x104)]=getLgasByState;
|
package/dist/locs.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const locs: any;
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monagree-locs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "States and LGAs in Nigeria (with GPS coordinates)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"build": "tsc",
|
package/tsconfig.json
CHANGED