@shopify/network
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -1,4 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./network"), exports); | ||
export * from './network'; |
@@ -1,5 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.noCache = exports.CacheControl = exports.hashSource = exports.nonceSource = exports.getResponseType = exports.ResponseType = exports.HashAlgorithm = exports.SriAsset = exports.SpecialSource = exports.CspSandboxAllow = exports.CspDirective = exports.Header = exports.StatusCode = exports.Method = void 0; | ||
var Method; | ||
export var Method; | ||
(function (Method) { | ||
@@ -14,4 +11,4 @@ Method["Get"] = "GET"; | ||
Method["Connect"] = "CONNECT"; | ||
})(Method = exports.Method || (exports.Method = {})); | ||
var StatusCode; | ||
})(Method || (Method = {})); | ||
export var StatusCode; | ||
(function (StatusCode) { | ||
@@ -61,4 +58,4 @@ StatusCode[StatusCode["Continue"] = 100] = "Continue"; | ||
StatusCode[StatusCode["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported"; | ||
})(StatusCode = exports.StatusCode || (exports.StatusCode = {})); | ||
var Header; | ||
})(StatusCode || (StatusCode = {})); | ||
export var Header; | ||
(function (Header) { | ||
@@ -93,4 +90,4 @@ Header["Accept"] = "Accept"; | ||
Header["ReferrerPolicy"] = "Referrer-Policy"; | ||
})(Header = exports.Header || (exports.Header = {})); | ||
var CspDirective; | ||
})(Header || (Header = {})); | ||
export var CspDirective; | ||
(function (CspDirective) { | ||
@@ -125,4 +122,4 @@ // Fetch directives | ||
CspDirective["UpgradeInsecureRequests"] = "upgrade-insecure-requests"; | ||
})(CspDirective = exports.CspDirective || (exports.CspDirective = {})); | ||
var CspSandboxAllow; | ||
})(CspDirective || (CspDirective = {})); | ||
export var CspSandboxAllow; | ||
(function (CspSandboxAllow) { | ||
@@ -139,4 +136,4 @@ CspSandboxAllow["Forms"] = "allow-forms"; | ||
CspSandboxAllow["TopNavigation"] = "allow-top-navigation"; | ||
})(CspSandboxAllow = exports.CspSandboxAllow || (exports.CspSandboxAllow = {})); | ||
var SpecialSource; | ||
})(CspSandboxAllow || (CspSandboxAllow = {})); | ||
export var SpecialSource; | ||
(function (SpecialSource) { | ||
@@ -153,9 +150,9 @@ SpecialSource["Any"] = "*"; | ||
SpecialSource["FileSystem"] = "filesystem:"; | ||
})(SpecialSource = exports.SpecialSource || (exports.SpecialSource = {})); | ||
var SriAsset; | ||
})(SpecialSource || (SpecialSource = {})); | ||
export var SriAsset; | ||
(function (SriAsset) { | ||
SriAsset["Script"] = "script"; | ||
SriAsset["Style"] = "style"; | ||
})(SriAsset = exports.SriAsset || (exports.SriAsset = {})); | ||
var HashAlgorithm; | ||
})(SriAsset || (SriAsset = {})); | ||
export var HashAlgorithm; | ||
(function (HashAlgorithm) { | ||
@@ -165,4 +162,4 @@ HashAlgorithm["Sha256"] = "sha256"; | ||
HashAlgorithm["Sha512"] = "sha512"; | ||
})(HashAlgorithm = exports.HashAlgorithm || (exports.HashAlgorithm = {})); | ||
var ResponseType; | ||
})(HashAlgorithm || (HashAlgorithm = {})); | ||
export var ResponseType; | ||
(function (ResponseType) { | ||
@@ -175,4 +172,4 @@ ResponseType["Informational"] = "1xx"; | ||
ResponseType["Unknown"] = "Unknown"; | ||
})(ResponseType = exports.ResponseType || (exports.ResponseType = {})); | ||
function getResponseType(status) { | ||
})(ResponseType || (ResponseType = {})); | ||
export function getResponseType(status) { | ||
if (status >= 100 && status < 200) { | ||
@@ -197,12 +194,9 @@ return ResponseType.Informational; | ||
} | ||
exports.getResponseType = getResponseType; | ||
function nonceSource(nonce) { | ||
return "'nonce-" + nonce + "'"; | ||
export function nonceSource(nonce) { | ||
return `'nonce-${nonce}'`; | ||
} | ||
exports.nonceSource = nonceSource; | ||
function hashSource(hashAlgorithm, value) { | ||
return "'" + hashAlgorithm + "-" + value + "'"; | ||
export function hashSource(hashAlgorithm, value) { | ||
return `'${hashAlgorithm}-${value}'`; | ||
} | ||
exports.hashSource = hashSource; | ||
var CacheControl; | ||
export var CacheControl; | ||
(function (CacheControl) { | ||
@@ -213,3 +207,3 @@ CacheControl["NoCache"] = "no-cache"; | ||
CacheControl["MaxAge"] = "max-age"; | ||
})(CacheControl = exports.CacheControl || (exports.CacheControl = {})); | ||
exports.noCache = CacheControl.NoCache + "," + CacheControl.NoStore + "," + CacheControl.MustRevalidate + "," + CacheControl.MaxAge + "=0"; | ||
})(CacheControl || (CacheControl = {})); | ||
export const noCache = `${CacheControl.NoCache},${CacheControl.NoStore},${CacheControl.MustRevalidate},${CacheControl.MaxAge}=0`; |
@@ -8,4 +8,12 @@ # Changelog | ||
## [1.6.2] - 2021-03-03 | ||
<!-- ## Unreleased --> | ||
## 1.6.4 - 2021-04-13 | ||
### Changed | ||
- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829) | ||
## 1.6.2 - 2021-03-03 | ||
### Fixed | ||
@@ -15,3 +23,3 @@ | ||
## [1.6.0] - 2020-12-18 | ||
## 1.6.0 - 2020-12-18 | ||
@@ -22,23 +30,23 @@ ### Added | ||
## [1.5.1] - 2020-10-20 | ||
## 1.5.1 - 2020-10-20 | ||
- Updated `tslib` dependency to `^1.14.1`. [#1657](https://github.com/Shopify/quilt/pull/1657) | ||
## [1.5.0] - 2019-08-18 | ||
## 1.5.0 - 2019-08-18 | ||
Added `ResponseType` function ([#1579](https://github.com/Shopify/quilt/pull/1573)) | ||
## [1.4.0] - 2019-06-27 | ||
## 1.4.0 - 2019-06-27 | ||
- Added the following headers: 'X-XSS-Protection', 'X-Frame-Options', 'X-Download-Options', 'X-Content-Type-Options', 'Strict-Transport-Security', 'Referrer-Policy' ([#752](https://github.com/Shopify/quilt/pull/752)) | ||
## [1.3.0] - 2019-06-12 | ||
## 1.3.0 - 2019-06-12 | ||
- Added 'Accept-Language' header ([#752](https://github.com/Shopify/quilt/pull/752)) | ||
## [1.2.2] | ||
## 1.2.2 | ||
- Manual release | ||
## [1.0.1] | ||
## 1.0.1 | ||
@@ -49,4 +57,4 @@ ### Added | ||
## [1.0.0] | ||
## 1.0.0 | ||
Initial release |
{ | ||
"name": "@shopify/network", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"license": "MIT", | ||
@@ -8,5 +8,2 @@ "description": "Common values related to dealing with the network", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"build": "tsc --p tsconfig.json" | ||
}, | ||
"sideEffects": false, | ||
@@ -35,5 +32,2 @@ "publishConfig": { | ||
], | ||
"dependencies": { | ||
"tslib": "^1.14.1" | ||
}, | ||
"module": "index.mjs", | ||
@@ -40,0 +34,0 @@ "esnext": "index.esnext", |
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
0
61389
990
- Removedtslib@^1.14.1
- Removedtslib@1.14.1(transitive)