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/toJSON.js')
-rw-r--r--assets/node_modules/yaml/browser/dist/toJSON.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/assets/node_modules/yaml/browser/dist/toJSON.js b/assets/node_modules/yaml/browser/dist/toJSON.js
deleted file mode 100644
index 793562f..0000000
--- a/assets/node_modules/yaml/browser/dist/toJSON.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toJSON;
-
-function toJSON(value, arg, ctx) {
- if (Array.isArray(value)) return value.map(function (v, i) {
- return toJSON(v, String(i), ctx);
- });
-
- if (value && typeof value.toJSON === 'function') {
- var anchor = ctx && ctx.anchors && ctx.anchors.find(function (a) {
- return a.node === value;
- });
- if (anchor) ctx.onCreate = function (res) {
- anchor.res = res;
- delete ctx.onCreate;
- };
- var res = value.toJSON(arg, ctx);
- if (anchor && ctx.onCreate) ctx.onCreate(res);
- return res;
- }
-
- return value;
-} \ No newline at end of file