Socket
Socket
Sign inDemoInstall

@shopify/network

Package Overview
Dependencies
Maintainers
13
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/network - npm Package Compare versions

Comparing version 1.4.6 to 1.4.7-sknext-beta.9

build/cjs/index.js

4

CHANGELOG.md

@@ -8,4 +8,8 @@ # Changelog

<!-- ## [Unreleased] -->
## [Unreleased]
Added `ResponseType` function
## [1.4.0] - 2019-06-27

@@ -12,0 +16,0 @@

24

package.json
{
"name": "@shopify/network",
"version": "1.4.6",
"version": "1.4.7-sknext-beta.9",
"license": "MIT",
"description": "Common values related to dealing with the network",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"main": "index.js",
"types": "index.d.ts",
"scripts": {

@@ -27,8 +27,22 @@ "build": "tsc --p tsconfig.json"

"files": [
"dist/*",
"!tsconfig.tsbuildinfo"
"build/*",
"!tsconfig.tsbuildinfo",
"index.js",
"index.mjs",
"index.esnext",
"index.d.ts"
],
"dependencies": {
"tslib": "^1.9.3"
},
"module": "index.mjs",
"esnext": "index.esnext",
"exports": {
"./": "./",
"./index": {
"import": "./index.mjs",
"require": "./index.js",
"esnext": "./index.esnext"
}
}
}

@@ -20,2 +20,3 @@ # `@shopify/network`

- `StatusCode`: enum for HTTP status codes (mapping from name to number)
- `ResponseType`: response type enum (2xx, 3xx, etc)
- `Header`: enum for common header names

@@ -26,3 +27,4 @@ - `CspDirective`: enum for names of [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) directives

- `nonceSource()`: function for generating nonce sources in CSP directives
- `getResponseType`: returns the `ResponseType` for an HTTP status code
- `HashAlgorithm`: enum for hash algorithms usable in several CSP directives
- `hashSource()`: function for generating hash sources in CSP directives
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