芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/strapi/lib/utils/success.js
'use strict'; /** * Module dependencies */ const fetch = require('node-fetch'); const { machineIdSync } = require('node-machine-id'); /* * No need to worry about this file, we only retrieve anonymous data here. * It allows us to know on how many times the package has been installed globally. */ try { if ( process.env.npm_config_global === 'true' || JSON.parse(process.env.npm_config_argv).original.includes('global') ) { fetch('https://analytics.strapi.io/track', { method: 'POST', body: JSON.stringify({ event: 'didInstallStrapi', deviceId: machineIdSync(), }), headers: { 'Content-Type': 'application/json' }, }).catch(() => {}); } } catch (e) { //... }