Socket
Book a DemoInstallSign in
Socket

wait-for-package-replication

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-for-package-replication

poll package endpoint after publish for modified time to change.Edit

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

wait-for-package-replication

Poll package endpoint after publish for modified time to change.

Depending on your region published changes may take longer to replicate to our edge caches.

Run this if you need to install a version immediately after publishing to guarantee that the new version is available.

npm install -g wait-for-package-replication

this works with public scoped and private modules by reading your .npmrc

cli use

npm publish somemodule
wait-for-package-replication -p somemodule
cd otherplace
npm install somemodule@latest

the default is to return if the metadata has been updated within the last 60 seconds. you can specify version or a different time window

check out wait-for-package-replication --help

also in code

var wait = require('../')


test('can',function(t){
  wait({
    package:'@types/angular',
    version:'1.5.13'
  },function(err,data){
    t.ok(!err,'should not have error')
    t.equals(data.name,'@types/angular','should be object')
    t.end()
  })
}

todo document options =) for now you'll have to look at the bin.

FAQs

Package last updated on 19 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts