Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/yaml/browser/dist/warnings.js')
-rw-r--r--assets/node_modules/yaml/browser/dist/warnings.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/assets/node_modules/yaml/browser/dist/warnings.js b/assets/node_modules/yaml/browser/dist/warnings.js
deleted file mode 100644
index fac7f91..0000000
--- a/assets/node_modules/yaml/browser/dist/warnings.js
+++ /dev/null
@@ -1,40 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.warn = warn;
-exports.warnFileDeprecation = warnFileDeprecation;
-exports.warnOptionDeprecation = warnOptionDeprecation;
-
-/* global global, console */
-function warn(warning, type) {
- if (global && global._YAML_SILENCE_WARNINGS) return;
-
- var _ref = global && global.process,
- emitWarning = _ref.emitWarning; // This will throw in Jest if `warning` is an Error instance due to
- // https://github.com/facebook/jest/issues/2549
-
-
- if (emitWarning) emitWarning(warning, type);else {
- // eslint-disable-next-line no-console
- console.warn(type ? "".concat(type, ": ").concat(warning) : warning);
- }
-}
-
-function warnFileDeprecation(filename) {
- if (global && global._YAML_SILENCE_DEPRECATION_WARNINGS) return;
- var path = filename.replace(/.*yaml[/\\]/i, '').replace(/\.js$/, '').replace(/\\/g, '/');
- warn("The endpoint 'yaml/".concat(path, "' will be removed in a future release."), 'DeprecationWarning');
-}
-
-var warned = {};
-
-function warnOptionDeprecation(name, alternative) {
- if (global && global._YAML_SILENCE_DEPRECATION_WARNINGS) return;
- if (warned[name]) return;
- warned[name] = true;
- var msg = "The option '".concat(name, "' will be removed in a future release");
- msg += alternative ? ", use '".concat(alternative, "' instead.") : '.';
- warn(msg, 'DeprecationWarning');
-} \ No newline at end of file