Skip to content

Commit

Permalink
doc-global-removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gaunt committed Nov 29, 2017
1 parent bd93885 commit 7d4bc51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/workbox-background-sync/models/StorableRequest.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default class StorableRequest {
*
* @param {Request} request
* @return {Promise<StorableRequest>}
*
* @private
*/
static async fromRequest(request) {
const requestInit = {headers: {}};
Expand Down Expand Up @@ -79,6 +81,8 @@ export default class StorableRequest {
* See: https://fetch.spec.whatwg.org/#requestinit
* @param {number} param1.timestamp The time the request was created,
* defaulting to the current time if not specified.
*
* @private
*/
constructor({url, requestInit, timestamp = Date.now()}) {
this.url = url;
Expand All @@ -92,6 +96,8 @@ export default class StorableRequest {
* Gets the private _timestamp property.
*
* @return {number}
*
* @private
*/
get timestamp() {
return this._timestamp;
Expand All @@ -101,6 +107,8 @@ export default class StorableRequest {
* Coverts this instance to a plain Object.
*
* @return {Object}
*
* @private
*/
toObject() {
return {
Expand All @@ -114,6 +122,8 @@ export default class StorableRequest {
* Converts this instance to a Request.
*
* @return {Request}
*
* @private
*/
toRequest() {
return new Request(this.url, this.requestInit);
Expand Down
2 changes: 2 additions & 0 deletions packages/workbox-webpack-plugin/src/lib/utils/read-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* `readFile` is configured to use `compiler.inputFileSystem._readFile` during
* the run phase of the webpack compilation lifecycle by passing the function
* to the `setReadFile` function.
*
* @private
*/
let readFileFn;

Expand Down

0 comments on commit 7d4bc51

Please sign in to comment.