Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/address

Package Overview
Dependencies
Maintainers
19
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/address - npm Package Compare versions

Comparing version 2.10.5 to 2.10.6-graphql-config-beta.1

2

build/cjs/index.js

@@ -19,2 +19,3 @@ "use strict";

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _addressConsts[key]) return;
Object.defineProperty(exports, key, {

@@ -33,2 +34,3 @@ enumerable: true,

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _loader[key]) return;
Object.defineProperty(exports, key, {

@@ -35,0 +37,0 @@ enumerable: true,

6

build/cjs/loader.js
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
Object.defineProperty(exports, "__esModule", {

@@ -16,4 +18,2 @@ value: true

function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -33,3 +33,3 @@

function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

@@ -36,0 +36,0 @@ function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }

@@ -19,2 +19,3 @@ "use strict";

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _addressConsts[key]) return;
Object.defineProperty(exports, key, {

@@ -33,2 +34,3 @@ enumerable: true,

if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
if (key in exports && exports[key] === _loader[key]) return;
Object.defineProperty(exports, key, {

@@ -35,0 +37,0 @@ enumerable: true,

@@ -8,11 +8,17 @@ # Changelog

<!-- ## [Unreleased] -->
<!-- ## Unreleased -->
## [2.10.4] - 2021-04-07
## 2.10.6 - 2021-04-13
### Changed
- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)
## 2.10.4 - 2021-04-07
### Changed
- Updated types within loader so it passes TypeScript's "noImplicitThis" checks. [#1814](https://github.com/Shopify/quilt/pull/1814)
## [2.10.3] - 2021-03-03
## 2.10.3 - 2021-03-03

@@ -23,3 +29,3 @@ ### Fixed

## [2.10.0] - 2020-12-18
## 2.10.0 - 2020-12-18

@@ -30,7 +36,7 @@ ### Added

## [2.9.2] - 2020-10-20
## 2.9.2 - 2020-10-20
- Updated `tslib` dependency to `^1.14.1`. [#1657](https://github.com/Shopify/quilt/pull/1657)
## [2.9.0] - 2020-09-02
## 2.9.0 - 2020-09-02

@@ -40,7 +46,9 @@ - Added `optionalLabels` to GraphQL query for countries and for country [(#1610)](https://github.com/Shopify/quilt/pull/1610)

## [2.8.0] - 2020-03-10
## 2.8.0 - 2020-03-10
- Major update to `@shopify/address-consts` and minor update to @shopify/address-mocks
- Remove use of `toSupportedLocale` to default locale to `en` and let
CountryService take care of the default `en` feature. [#1301](https://github.com/Shopify/quilt/pull/1301)
## [2.7.0] - 2019-08-14
## 2.7.0 - 2019-08-14

@@ -51,3 +59,3 @@ ### Added

## [2.5.0] - 2019-01-08
## 2.5.0 - 2019-01-08

@@ -58,15 +66,15 @@ - Removed `address2Key`, `zoneKey` and `zipKey`

## [2.4.0] - 2018-10-11
## 2.4.0 - 2018-10-11
- Expose testing helpers. ([#328](https://github.com/Shopify/quilt/pull/328))
## [2.3.0] - 2018-10-01
## 2.3.0 - 2018-10-01
- Replaced `SupportedCountry` type by string. ([#322](https://github.com/Shopify/quilt/pull/322))
## [2.2.0] - 2018-10-01
## 2.2.0 - 2018-10-01
- Replaced `SupportedLocale` type by string. Default to english, if locale does not exist. ([#321](https://github.com/Shopify/quilt/pull/321))
## [2.1.0] - 2018-09-28
## 2.1.0 - 2018-09-28

@@ -77,3 +85,3 @@ - Created `SupportedLocale` type ([#311](https://github.com/Shopify/quilt/pull/311))

## [2.0.0] - 2018-09-19
## 2.0.0 - 2018-09-19

@@ -80,0 +88,0 @@ ### Added

{
"name": "@shopify/address",
"version": "2.10.5",
"version": "2.10.6-graphql-config-beta.1",
"license": "MIT",

@@ -8,5 +8,2 @@ "description": "Address utilities for formatting addresses",

"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"publishConfig": {

@@ -27,9 +24,8 @@ "access": "public",

"devDependencies": {
"@shopify/address-mocks": "^1.5.5",
"@shopify/jest-dom-mocks": "^2.11.4"
"@shopify/address-mocks": "^1.5.6-graphql-config-beta.1",
"@shopify/jest-dom-mocks": "^2.11.5-graphql-config-beta.1"
},
"sideEffects": false,
"dependencies": {
"@shopify/address-consts": "^2.2.3",
"tslib": "^1.14.1"
"@shopify/address-consts": "^2.2.4-graphql-config-beta.1"
},

@@ -36,0 +32,0 @@ "files": [

@@ -26,11 +26,11 @@ # `@shopify/address`

Update the locale of the formatter. Following requests will be in the given locale.
Update the current locale of the formatter. Following requests will be in the given locale.
#### `async .getCountry(countryCode: string): Promise<Country>`
Loads and return data about a given country in the locale used for instanciation. Country and province names are localized. Province names are ordered based on the locale
Loads and returns data about a given country in the current locale. Country and province names are localized. Province names are sorted based on the locale.
#### `async .getCountries(): Promise<Country[]>`
Loads and return data about a all countries in the given locale. Countries are ordered alphabetically based on the locale. Zones are also ordered based on the locale.
Loads and returns data for all countries in the current locale. Countries are sorted based on the locale. Zones are also ordered based on the locale.

@@ -57,3 +57,3 @@ #### `async .getOrderedFields(countryCode): FieldName[][]`

Given an address, returns the address ordered for multiline show. Eg.
Given an address, returns the address ordered for multiline rendering. e.g.:

@@ -109,3 +109,3 @@ ```typescript

If your component uses this package and you want to test it with mock API calls you can use the following
If your component uses this package and you want to test it with mock API calls you can use the following:

@@ -112,0 +112,0 @@ ```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc