@shopify/network
Common values related to dealing with the network
Last updated a month ago by shopify-dep .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @shopify/network 
SYNC missed versions from official npm registry.

@shopify/network

Build Status License: MIT npm version npm bundle size (minified + gzip)

Common values related to dealing with the network.

Installation

$ yarn add @shopify/network

Usage

Import any of the enums or functions in this package to get a friendly API to common network details. The following values are exposed from this library:

  • Method: enum for HTTP methods
  • StatusCode: enum for HTTP status codes (mapping from name to number)
  • Header: enum for common header names
  • CspDirective: enum for names of content security policy directives
  • CspSandboxAllow: enum for values allowed in the CSP sandbox directive
  • SpecialSource: enum for "special" (non-URI) sources usable in many CSP directives
  • nonceSource(): function for generating nonce sources in CSP directives
  • HashAlgorithm: enum for hash algorithms usable in several CSP directives
  • hashSource(): function for generating hash sources in CSP directives

Current Tags

  • 1.4.7                                ...           latest (a month ago)

15 Versions

  • 1.4.7                                ...           a month ago
  • 1.4.6                                ...           4 months ago
  • 1.4.5                                ...           5 months ago
  • 1.4.4                                ...           6 months ago
  • 1.4.3                                ...           6 months ago
  • 1.4.2                                ...           9 months ago
  • 1.4.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago

Copyright 2014 - 2016 © taobao.org |