mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-02-17 01:12:37 +01:00
More fixes
This commit is contained in:
parent
42bb43d839
commit
30e156a77b
@ -3,12 +3,11 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "craco start",
|
"start": "BROWSER=none craco start",
|
||||||
"build": "GENERATE_SOURCEMAP=false BROWSER=none craco build",
|
"build": "GENERATE_SOURCEMAP=false craco build",
|
||||||
"build:prod": "npx browserslist@latest --update-db && yarn build",
|
"build:prod": "npx browserslist@latest --update-db && yarn build",
|
||||||
"test": "craco test",
|
"test": "craco test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject"
|
||||||
"postinstall": "node ./post-install.js"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@craco/craco": "^6.3.0",
|
"@craco/craco": "^6.3.0",
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
import { request as httpsRequest } from 'https';
|
|
||||||
|
|
||||||
function install()
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
const params = {};
|
|
||||||
|
|
||||||
params['packageName'] = process.env.npm_package_name;
|
|
||||||
params['packageVersion'] = process.env.npm_package_version;
|
|
||||||
|
|
||||||
const data = JSON.stringify(params);
|
|
||||||
const request = httpsRequest({
|
|
||||||
hostname: 'install.nitrots.co',
|
|
||||||
port: 443,
|
|
||||||
path: '/collect',
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'Content-Length': data.length
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
request.write(data);
|
|
||||||
request.end();
|
|
||||||
}
|
|
||||||
|
|
||||||
catch (e)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
install();
|
|
Loading…
x
Reference in New Issue
Block a user