@shopify/address
Advanced tools
Comparing version 4.0.6 to 4.0.7
@@ -8,2 +8,4 @@ 'use strict'; | ||
const FIELD_REGEXP = /({\w+})/g; | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
const FIELDS_MAPPING = { | ||
@@ -21,2 +23,4 @@ '{firstName}': addressConsts.FieldName.FirstName, | ||
}; | ||
/* eslint-enable @typescript-eslint/naming-convention */ | ||
/* | ||
@@ -23,0 +27,0 @@ * Returns empty string if all replacement fields are empty. |
@@ -1,2 +0,2 @@ | ||
import { Address, FieldName, Country } from '@shopify/address-consts'; | ||
import type { Address, FieldName, Country } from '@shopify/address-consts'; | ||
export default class AddressFormatter { | ||
@@ -3,0 +3,0 @@ private locale; |
@@ -1,2 +0,2 @@ | ||
import { Address, Country, FieldName } from '@shopify/address-consts'; | ||
import type { Address, Country, FieldName } from '@shopify/address-consts'; | ||
/** | ||
@@ -3,0 +3,0 @@ * When it's time to render any address, use this function so that it's properly |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/cjs/index.js"); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "@shopify/address", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "description": "Address utilities for formatting addresses", | ||
"devDependencies": { | ||
"@shopify/address-mocks": "^3.1.3", | ||
"@shopify/jest-dom-mocks": "^4.0.1" | ||
"@shopify/address-mocks": "^3.1.6", | ||
"@shopify/jest-dom-mocks": "^4.1.1" | ||
}, | ||
@@ -30,0 +30,0 @@ "sideEffects": false, |
@@ -13,3 +13,3 @@ # `@shopify/address` | ||
```bash | ||
$ yarn add @shopify/address | ||
yarn add @shopify/address | ||
``` | ||
@@ -16,0 +16,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
37436
698