"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "smoke-tests/index.js" between
npm-cli-7.16.0.tar.gz and npm-cli-7.17.0.tar.gz

About: npm is a JavaScript package manager (requires node v6 or higher).

index.js  (npm-cli-7.16.0):index.js  (npm-cli-7.17.0)
skipping to change at line 15 skipping to change at line 15
const t = require('tap') const t = require('tap')
const normalizePath = path => path.replace(/[A-Z]:/, '').replace(/\\/g, '/') const normalizePath = path => path.replace(/[A-Z]:/, '').replace(/\\/g, '/')
const cwd = normalizePath(process.cwd()) const cwd = normalizePath(process.cwd())
t.cleanSnapshot = s => s.split(cwd).join('{CWD}') t.cleanSnapshot = s => s.split(cwd).join('{CWD}')
.split(registry).join('https://registry.npmjs.org/') .split(registry).join('https://registry.npmjs.org/')
.split(normalizePath(process.execPath)).join('node') .split(normalizePath(process.execPath)).join('node')
.split(process.cwd()).join('{CWD}') .split(process.cwd()).join('{CWD}')
.replace(/\\+/g, '/') .replace(/\\+/g, '/')
.replace(/\r\n/g, '\n') .replace(/\r\n/g, '\n')
.replace(/\ \(in a browser\)/g, '') .replace(/ \(in a browser\)/g, '')
.replace(/^npm@.*\ /mg, 'npm ') .replace(/^npm@.* /mg, 'npm ')
// setup server // setup server
const { start, stop, registry } = require('./server.js') const { start, stop, registry } = require('./server.js')
t.before(start) t.before(start)
t.teardown(stop) t.teardown(stop)
// setup fixtures // setup fixtures
const path = t.testdir({ const path = t.testdir({
'.npmrc': '', '.npmrc': '',
cache: {}, cache: {},
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)