Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-price-tag

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-price-tag - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

packageData.txt

2

package.json
{
"name": "get-price-tag",
"version": "0.0.17",
"version": "0.0.18",
"main": "dist/commonjs/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

@@ -0,27 +1,29 @@

import fetch from "node-fetch";
import fs from 'fs';
console.log("postinstall first...");
function postComponent() {
console.log("postinstall...");
// function postComponent() {
// console.log("postinstall...");
// Print out the name of the package that was just installed.
const pkgName = process.env.npm_package_name;
fs.writeFileSync('./packageData.txt', pkgName + " " + process.env.PWD);
console.log(" " + process.env.npm_package_name);
// // Print out the name of the package that was just installed.
// console.log(" " + process.env.npm_package_name);
// // Print out the directory of the package that was just installed.
// console.log(" " + process.env.PWD);
// // fetch("https://stats.api.voca.teliacompany.com/components", {
// // method: "POST",
// // body: JSON.stringify({
// // voca_component: "telia-roman-test",
// // voca_project: "testing-postinstall-fi",
// // voca_country: "Finland",
// // }),
// // })
// // .then((response) => {
// // return console.log(response);
// // })
// // .catch((error) => {
// // return console.log(error);
// // });
// }
// postComponent();
// Print out the directory of the package that was just installed.
console.log(" " + process.env.PWD);
// fetch("https://stats.api.voca.teliacompany.com/components", {
// method: "POST",
// body: JSON.stringify({
// voca_component: "telia-roman-test",
// voca_project: "testing-postinstall-fi",
// voca_country: "Finland",
// }),
// })
// .then((response) => {
// return console.log(response);
// })
// .catch((error) => {
// return console.log(error);
// });
}
postComponent();
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc