WordPress/wp-includes/js/dist/deprecated.js.map
atimmer cc13a1f3a0 General: Fix code formatting issues.
Fix code formatting after [44174] and [44177].

Built from https://develop.svn.wordpress.org/trunk@44178


git-svn-id: http://core.svn.wordpress.org/trunk@44008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 11:02:53 +00:00

1 line
7.5 KiB
Plaintext

{"version":3,"sources":["webpack://wp.[name]/webpack/bootstrap","webpack://wp.[name]//Users/robert/projects/gutenberg/packages/deprecated/src/index.js","webpack://wp.[name]/external {\"this\":[\"wp\",\"hooks\"]}"],"names":["logged","Object","create","deprecated","feature","options","version","alternative","plugin","link","hint","pluginMessage","versionMessage","useInsteadMessage","linkMessage","hintMessage","message","doAction","console","warn"],"mappings":";;AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAA0C,gCAAgC;AAC1E;AACA;;AAEA;AACA;AACA;AACA,gEAAwD,kBAAkB;AAC1E;AACA,yDAAiD,cAAc;AAC/D;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAyC,iCAAiC;AAC1E,wHAAgH,mBAAmB,EAAE;AACrI;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;;AAGA;AACA;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAGA;AAEA;;;;;;;AAMO,IAAMA,MAAM,GAAGC,MAAM,CAACC,MAAP,CAAe,IAAf,CAAf;AAEP;;;;;;;;;;;;AAWe,SAASC,UAAT,CAAqBC,OAArB,EAA6C;AAAA,MAAfC,OAAe,uEAAL,EAAK;AAAA,MAE1DC,OAF0D,GAOvDD,OAPuD,CAE1DC,OAF0D;AAAA,MAG1DC,WAH0D,GAOvDF,OAPuD,CAG1DE,WAH0D;AAAA,MAI1DC,MAJ0D,GAOvDH,OAPuD,CAI1DG,MAJ0D;AAAA,MAK1DC,IAL0D,GAOvDJ,OAPuD,CAK1DI,IAL0D;AAAA,MAM1DC,IAN0D,GAOvDL,OAPuD,CAM1DK,IAN0D;AAS3D,MAAMC,aAAa,GAAGH,MAAM,mBAAaA,MAAb,IAAyB,EAArD;AACA,MAAMI,cAAc,GAAGN,OAAO,aAAOK,aAAP,iBAA6BL,OAA7B,IAA0C,EAAxE;AACA,MAAMO,iBAAiB,GAAGN,WAAW,yBAAmBA,WAAnB,iBAA6C,EAAlF;AACA,MAAMO,WAAW,GAAGL,IAAI,mBAAaA,IAAb,IAAuB,EAA/C;AACA,MAAMM,WAAW,GAAGL,IAAI,oBAAcA,IAAd,IAAwB,EAAhD;AACA,MAAMM,OAAO,aAAOZ,OAAP,+CAAqDQ,cAArD,cAAyEC,iBAAzE,SAA+FC,WAA/F,SAA+GC,WAA/G,CAAb,CAd2D,CAgB3D;;AACA,MAAKC,OAAO,IAAIhB,MAAhB,EAAyB;AACxB;AACA;AAED;;;;;;;;;;;;;;AAYAiB,mEAAQ,CAAE,YAAF,EAAgBb,OAAhB,EAAyBC,OAAzB,EAAkCW,OAAlC,CAAR,CAjC2D,CAmC3D;;AACAE,SAAO,CAACC,IAAR,CAAcH,OAAd;AAEAhB,QAAM,CAAEgB,OAAF,CAAN,GAAoB,IAApB;AACA;;;;;;;;;;;;AC/DD,aAAa,sCAAsC,EAAE,I","file":"deprecated.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./node_modules/@wordpress/deprecated/build-module/index.js\");\n","/**\n * WordPress dependencies\n */\nimport { doAction } from '@wordpress/hooks';\n\n/**\n * Object map tracking messages which have been logged, for use in ensuring a\n * message is only logged once.\n *\n * @type {Object}\n */\nexport const logged = Object.create( null );\n\n/**\n * Logs a message to notify developers about a deprecated feature.\n *\n * @param {string} feature Name of the deprecated feature.\n * @param {?Object} options Personalisation options\n * @param {?string} options.version Version in which the feature will be removed.\n * @param {?string} options.alternative Feature to use instead\n * @param {?string} options.plugin Plugin name if it's a plugin feature\n * @param {?string} options.link Link to documentation\n * @param {?string} options.hint Additional message to help transition away from the deprecated feature.\n */\nexport default function deprecated( feature, options = {} ) {\n\tconst {\n\t\tversion,\n\t\talternative,\n\t\tplugin,\n\t\tlink,\n\t\thint,\n\t} = options;\n\n\tconst pluginMessage = plugin ? ` from ${ plugin }` : '';\n\tconst versionMessage = version ? `${ pluginMessage } in ${ version }` : '';\n\tconst useInsteadMessage = alternative ? ` Please use ${ alternative } instead.` : '';\n\tconst linkMessage = link ? ` See: ${ link }` : '';\n\tconst hintMessage = hint ? ` Note: ${ hint }` : '';\n\tconst message = `${ feature } is deprecated and will be removed${ versionMessage }.${ useInsteadMessage }${ linkMessage }${ hintMessage }`;\n\n\t// Skip if already logged.\n\tif ( message in logged ) {\n\t\treturn;\n\t}\n\n\t/**\n\t * Fires whenever a deprecated feature is encountered\n\t *\n\t * @param {string} feature Name of the deprecated feature.\n\t * @param {?Object} options Personalisation options\n\t * @param {?string} options.version Version in which the feature will be removed.\n\t * @param {?string} options.alternative Feature to use instead\n\t * @param {?string} options.plugin Plugin name if it's a plugin feature\n\t * @param {?string} options.link Link to documentation\n\t * @param {?string} options.hint Additional message to help transition away from the deprecated feature.\n\t * @param {?string} message Message sent to console.warn\n\t */\n\tdoAction( 'deprecated', feature, options, message );\n\n\t// eslint-disable-next-line no-console\n\tconsole.warn( message );\n\n\tlogged[ message ] = true;\n}\n","(function() { module.exports = this[\"wp\"][\"hooks\"]; }());"],"sourceRoot":""}