react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / request / node_modules / tough-cookie / lib / store.js
81146 views/*!1* Copyright (c) 2015, Salesforce.com, Inc.2* All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions are met:6*7* 1. Redistributions of source code must retain the above copyright notice,8* this list of conditions and the following disclaimer.9*10* 2. Redistributions in binary form must reproduce the above copyright notice,11* this list of conditions and the following disclaimer in the documentation12* and/or other materials provided with the distribution.13*14* 3. Neither the name of Salesforce.com nor the names of its contributors may15* be used to endorse or promote products derived from this software without16* specific prior written permission.17*18* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"19* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE20* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE21* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE22* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR23* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF24* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS25* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN26* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)27* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE28* POSSIBILITY OF SUCH DAMAGE.29*/30'use strict';31/*jshint unused:false */3233function Store() {34}35exports.Store = Store;3637// Stores may be synchronous, but are still required to use a38// Continuation-Passing Style API. The CookieJar itself will expose a "*Sync"39// API that converts from synchronous-callbacks to imperative style.40Store.prototype.synchronous = false;4142Store.prototype.findCookie = function(domain, path, key, cb) {43throw new Error('findCookie is not implemented');44};4546Store.prototype.findCookies = function(domain, path, cb) {47throw new Error('findCookies is not implemented');48};4950Store.prototype.putCookie = function(cookie, cb) {51throw new Error('putCookie is not implemented');52};5354Store.prototype.updateCookie = function(oldCookie, newCookie, cb) {55// recommended default implementation:56// return this.putCookie(newCookie, cb);57throw new Error('updateCookie is not implemented');58};5960Store.prototype.removeCookie = function(domain, path, key, cb) {61throw new Error('removeCookie is not implemented');62};6364Store.prototype.removeCookies = function removeCookies(domain, path, cb) {65throw new Error('removeCookies is not implemented');66};676869