X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fes%2Fjson%2Fstringify.js;h=5909b5982adb6499ea56899f2692f8ff584f1c9b;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=19018139fee7490620b8f6ca87ce6f8c7bc27069;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/json/stringify.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/json/stringify.js index 19018139..5909b598 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/json/stringify.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/json/stringify.js @@ -1,9 +1,11 @@ require('../../modules/es.json.stringify'); -var core = require('../../internals/path'); +var path = require('../../internals/path'); +var apply = require('../../internals/function-apply'); -if (!core.JSON) core.JSON = { stringify: JSON.stringify }; +// eslint-disable-next-line es/no-json -- safe +if (!path.JSON) path.JSON = { stringify: JSON.stringify }; // eslint-disable-next-line no-unused-vars -- required for `.length` module.exports = function stringify(it, replacer, space) { - return core.JSON.stringify.apply(null, arguments); + return apply(path.JSON.stringify, null, arguments); };