Skip to content

Commit

Permalink
Support React Native
Browse files Browse the repository at this point in the history
  • Loading branch information
lb90 committed May 21, 2021
1 parent 1b25269 commit b43b4e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
5 changes: 0 additions & 5 deletions lib/cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"use strict";
const punycode = require("punycode");
const urlParse = require("url").parse;
const util = require("util");
const pubsuffix = require("./pubsuffix-psl");
const Store = require("./store").Store;
const MemoryCookieStore = require("./memstore").MemoryCookieStore;
Expand Down Expand Up @@ -792,10 +791,6 @@ const cookieDefaults = {

class Cookie {
constructor(options = {}) {
if (util.inspect.custom) {
this[util.inspect.custom] = this.inspect;
}

Object.assign(this, cookieDefaults, options);
this.creation = this.creation || new Date();

Expand Down
8 changes: 0 additions & 8 deletions lib/memstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,12 @@ const { fromCallback } = require("universalify");
const Store = require("./store").Store;
const permuteDomain = require("./permuteDomain").permuteDomain;
const pathMatch = require("./pathMatch").pathMatch;
const util = require("util");

class MemoryCookieStore extends Store {
constructor() {
super();
this.synchronous = true;
this.idx = {};
if (util.inspect.custom) {
this[util.inspect.custom] = this.inspect;
}
}

inspect() {
return `{ idx: ${util.inspect(this.idx, false, 2)} }`;
}

findCookie(domain, path, key, cb) {
Expand Down

0 comments on commit b43b4e9

Please sign in to comment.