msalafia Github contribution chart
msalafia Github Stats
msalafia Most Used Languages

Activity

28 Nov 2022

Issue Comment

Msalafia

How does this work with ESM Node?

there is no require or module (afaik) in ESM, so is there a way to get pkginfo in ESM Node?

Forked On 28 Nov 2022 at 11:07:07

Msalafia

I am using the following to access my package.json info for ESM projects:

import { createRequire } from "module";
const require = createRequire(import.meta.url);
const packageJson = require("../package.json"); 

Commented On 28 Nov 2022 at 11:07:07

Msalafia

started

Started On 25 Nov 2022 at 07:37:23

Msalafia

started

Started On 25 Nov 2022 at 07:22:08

Msalafia

started

Started On 23 Nov 2022 at 10:23:18

Msalafia

started

Started On 27 Oct 2022 at 02:49:56

Msalafia

started

Started On 21 Oct 2022 at 04:55:10

Msalafia

started

Started On 21 Oct 2022 at 04:47:47

Msalafia

started

Started On 21 Oct 2022 at 04:21:27

Msalafia

started

Started On 16 Oct 2022 at 12:06:42

Msalafia

started

Started On 12 Oct 2022 at 08:36:05

Msalafia

started

Started On 04 Oct 2022 at 09:26:10

Msalafia

started

Started On 03 Oct 2022 at 09:37:39

Msalafia

started

Started On 03 Oct 2022 at 09:15:52

Msalafia

started

Started On 02 Oct 2022 at 11:54:03

Msalafia

started

Started On 29 Sep 2022 at 06:10:27
Issue Comment

Msalafia

Private npm registry

I am using v1.0.3 with a CLI utility that has been added to our private npm registry. The registry is defined both in my global (user) .npmrc and local CLI utility .npmrc but it is still coming back as undefined when I use:

const updateNotifier = require('update-notifier');
const pkg = require('./package.json');

// Checks for available update and returns an instance
const notifier = updateNotifier({pkg});

// Notify using the built-in convenience method
notifier.notify();

// `notifier.update` contains some useful info about the update
console.log(notifier.update); 

Is there a step I am missing? Based on #32 I thought it should work with private registries. Maybe I'm wrong though.

Forked On 26 Sep 2022 at 08:51:24

Msalafia

We are in 2022 and still not working with private repository even though some solution have been proposed in other forks. Am i missing something?

Commented On 26 Sep 2022 at 08:51:24

Msalafia

started

Started On 25 Sep 2022 at 11:26:36

Msalafia

started

Started On 25 Sep 2022 at 10:19:56

Msalafia

started

Started On 25 Sep 2022 at 09:56:52

Msalafia

started

Started On 25 Sep 2022 at 08:01:23

Msalafia

started

Started On 17 Sep 2022 at 01:28:30

Msalafia

started

Started On 16 Sep 2022 at 06:07:40

Msalafia

started

Started On 16 Sep 2022 at 04:48:08

Msalafia

started

Started On 15 Sep 2022 at 06:12:12

Msalafia

started

Started On 12 Sep 2022 at 04:08:33

Msalafia

started

Started On 10 Sep 2022 at 09:09:27