PageSourceSearch

https://mariawolff.org/wp-includes/js/dist/warning.js

js mariawolff.org collected 2026-09-24 12:38:54 UTC 1,616 bytes, 54 lines download raw bytes

1(function() {
2"use strict";
3var wp;
4(wp ||= {}).warning = (() => {
5  var __defProp = Object.defineProperty;
6  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7  var __getOwnPropNames = Object.getOwnPropertyNames;
8  var __hasOwnProp = Object.prototype.hasOwnProperty;
9  var __export = (target, all) => {
10    for (var name in all)
11      __defProp(target, name, { get: all[name], enumerable: true });
12  };
13  var __copyProps = (to, from, except, desc) => {
14    if (from && typeof from === "object" || typeof from === "function") {
15      for (let key of __getOwnPropNames(from))
16        if (!__hasOwnProp.call(to, key) && key !== except)
17          __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18    }
19    return to;
20  };
21  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
23  
23// packages/warning/build-module/index.mjs
24  var index_exports = {};
25  __export(index_exports, {
26    default: () => warning
27  });
28
29  
29// packages/warning/build-module/utils.mjs
30  var logged = /* @__PURE__ */ new Set();
31
32  
32// packages/warning/build-module/index.mjs
33  function isDev() {
34    return true;
35  }
36  function warning(message) {
37    if (!isDev()) {
38      return;
39    }
40    if (logged.has(message)) {
41      return;
42    }
43    console.warn(message);
44    try {
45      throw Error(message);
46    } catch {
47    }
48    logged.add(message);
49  }
50  return __toCommonJS(index_exports);
51})();
52if (typeof wp.warning === 'object' && wp.warning.default) { wp.warning = wp.warning.default; }
53(window.wp ||= {}).warning = wp.warning;
54})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.