Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/escape-html/.././object-assign/../@hapi/../base64id/../yargs-parser/../protobufjs/.././peek-readable/../domutils/../@adiwajshing/../base64id/../forwarded/../y18n/../axios/lib/helpers
الملفات الموجودة في هذا الـ Path:
.
..
AxiosTransformStream.js
AxiosURLSearchParams.js
HttpStatusCode.js
README.md
ZlibHeaderTransformStream.js
bind.js
buildURL.js
callbackify.js
combineURLs.js
cookies.js
deprecatedMethod.js
formDataToJSON.js
formDataToStream.js
fromDataURI.js
isAbsoluteURL.js
isAxiosError.js
isURLSameOrigin.js
null.js
parseHeaders.js
parseProtocol.js
readBlob.js
speedometer.js
spread.js
throttle.js
toFormData.js
toURLEncodedForm.js
validator.js

مشاهدة ملف: cookies.js

import utils from './../utils.js';
import platform from '../platform/index.js';

export default platform.hasStandardBrowserEnv ?

  // Standard browser envs support document.cookie
  {
    write(name, value, expires, path, domain, secure) {
      const cookie = [name + '=' + encodeURIComponent(value)];

      utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());

      utils.isString(path) && cookie.push('path=' + path);

      utils.isString(domain) && cookie.push('domain=' + domain);

      secure === true && cookie.push('secure');

      document.cookie = cookie.join('; ');
    },

    read(name) {
      const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
      return (match ? decodeURIComponent(match[3]) : null);
    },

    remove(name) {
      this.write(name, '', Date.now() - 86400000);
    }
  }

  :

  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {},
    read() {
      return null;
    },
    remove() {}
  };