403Webshell
Server IP : 185.208.173.17  /  Your IP : 87.236.161.98
Web Server : Microsoft-IIS/10.0
System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64
User : IUSR ( 0)
PHP Version : 7.4.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/parsmega.nuxt/node_modules/nuxt-ssr-cache/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/parsmega.nuxt/node_modules/nuxt-ssr-cache/lib/serializer.js
"use strict";

function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }

function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }

function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }

function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

module.exports = {
  // renderer's result contains a Set and Function,
  // here we are handling their serializations
  serialize: function serialize(result) {
    return JSON.stringify(result, function (key, value) {
      if (_typeof(value) === 'object' && value instanceof Set) {
        return {
          _t: 'set',
          _v: _toConsumableArray(value)
        };
      }

      if (typeof value === 'function') {
        return {
          _t: 'func',
          _v: value()
        };
      }

      return value;
    });
  },
  deserialize: function deserialize(jsoned) {
    return JSON.parse(jsoned, function (key, value) {
      if (value && value._v) {
        if (value._t === 'set') {
          return new Set(value._v);
        }

        if (value._t === 'func') {
          var result = value._v;
          return function () {
            return result;
          };
        }
      }

      return value;
    });
  }
};

Youez - 2016 - github.com/yon3zu
LinuXploit