Skip to content

Commit 3302a56

Browse files
committed
Unnecessary js files to json
1 parent 7bc6c51 commit 3302a56

4 files changed

Lines changed: 5 additions & 9 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const iso31661 = [
1+
[
22
{
33
"name": "Andorra",
44
"alpha2": "AD",
@@ -1494,5 +1494,3 @@ const iso31661 = [
14941494
"numeric": "716"
14951495
}
14961496
]
1497-
1498-
module.exports = iso31661
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const noPostalCodeCountries = [
1+
[
22
"Angola",
33
"Antigua and Barbuda",
44
"Aruba",
@@ -67,5 +67,3 @@ const noPostalCodeCountries = [
6767
"Yemen",
6868
"Zimbabwe"
6969
]
70-
71-
module.exports = noPostalCodeCountries

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

3-
const noPostalCodeCountries = require('./data/nopostal.js')
4-
const iso31661 = require('./data/iso31661.js')
3+
const noPostalCodeCountries = require('./data/nopostal.json')
4+
const iso31661 = require('./data/iso31661.json')
55

66

77
const getFromCollection = (collection, value, type) => {

tests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const hasPostalCode = require('../src/index.js')
2-
const noPostalCodeCountries = require('../src/data/nopostal.js')
2+
const noPostalCodeCountries = require('../src/data/nopostal.json')
33

44
describe('hasPostalCode', () => {
55

0 commit comments

Comments
 (0)