UNPKG

454 BJavaScriptView Raw
1// Importing from `.json.js` a workaround for a bug in web browsers' "native"
2// ES6 importing system which is uncapable of importing "*.json" files.
3// https://github.com/catamphetamine/libphonenumber-js/issues/239
4import metadata from '../metadata.mobile.json.js'
5export default metadata
6
7export function withMetadata(func, _arguments) {
8 var args = Array.prototype.slice.call(_arguments)
9 args.push(metadata)
10 return func.apply(this, args)
11}
\No newline at end of file