country-region-data
Advanced tools
Comparing version 1.3.4 to 1.3.6
var _ = require('underscore'); | ||
var libumd = require('libumd'); | ||
var findDuplicates = function (sourceArray, prop) { | ||
@@ -77,5 +77,19 @@ var duplicates = []; | ||
function umdify () { | ||
var content = getJSON(grunt); | ||
var output = libumd("return " + JSON.stringify(content, null, 2) + ";", { | ||
globalAlias: "countryRegionData", | ||
indent: 2 | ||
}); | ||
grunt.file.write("data.js", output); | ||
console.log('Successfully made a UMD module!'); | ||
} | ||
grunt.registerTask("default", ['validate']); | ||
grunt.registerTask("validate", validate); | ||
grunt.registerTask("findIncomplete", findIncomplete); | ||
grunt.registerTask("umdify", umdify); | ||
}; |
The MIT License (MIT) | ||
Copyright (c) 2016 Benjamin Keen | ||
Copyright (c) 2017 Benjamin Keen | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "country-region-data", | ||
"version": "1.3.4", | ||
"version": "1.3.6", | ||
"description": "List of countries, regions, and their shortcodes.", | ||
@@ -26,4 +26,5 @@ "main": "data.json", | ||
"grunt": "^1.0.1", | ||
"libumd": "^0.7.0", | ||
"underscore": "^1.8.3" | ||
} | ||
} |
@@ -63,2 +63,4 @@ ## country-region-data | ||
- `1.3.6` - July 5, 2017. JS version added of the json file (thanks [jayeb!](https://github.com/jayeb)!). Minor bug fixes. | ||
- `1.3.5` - Apr 20, 2017. Misc updates. Thanks all! | ||
- `1.3.4` - Dec 31, 2016. Mexico region update - thanks [richi3f](https://github.com/richi3f)! | ||
@@ -65,0 +67,0 @@ - `1.3.3` - Dec 22, 2016. French region fix - thanks [JMartelot](https://github.com/JMartelot)! |
Sorry, the diff of this file is too big to display
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
669063
8
37351
81
3