mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-01 02:42:23 -05:00
Merge pull request #477 from verdaccio/update_deps
build: update dependencies
This commit is contained in:
commit
8b36ff6a16
9 changed files with 5588 additions and 901 deletions
|
@ -17,7 +17,3 @@ node_modules/@verdaccio/types/lib/
|
|||
|
||||
[options]
|
||||
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
|
||||
unsafe.enable_getters_and_setters=true
|
||||
|
||||
[version]
|
||||
^0.52.0
|
||||
|
|
4536
flow-typed/npm/lodash_v4.x.x.js
vendored
4536
flow-typed/npm/lodash_v4.x.x.js
vendored
File diff suppressed because it is too large
Load diff
|
@ -8,6 +8,7 @@ module.exports = {
|
|||
'node_modules',
|
||||
'fixtures'
|
||||
],
|
||||
'testEnvironment': 'jest-environment-jsdom-global',
|
||||
'testRegex': '(/test/unit.*\\.spec|test/functional.*\\.func|/test/webui/.*\\.spec)\\.js',
|
||||
// 'testRegex': '(test/functional.*\\.func)\\.js'
|
||||
'setupFiles': [
|
||||
|
|
57
package.json
57
package.json
|
@ -38,7 +38,7 @@
|
|||
"lockfile": "^1.0.1",
|
||||
"lodash": "4.17.4",
|
||||
"lunr": "^0.7.0",
|
||||
"marked": "0.3.9",
|
||||
"marked": "0.3.12",
|
||||
"mime": "^2.0.3",
|
||||
"minimatch": "^3.0.2",
|
||||
"mkdirp": "^0.5.1",
|
||||
|
@ -48,22 +48,22 @@
|
|||
"unix-crypt-td-js": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "0.1.1",
|
||||
"@verdaccio/types": "^0.2.0",
|
||||
"axios": "0.17.1",
|
||||
"babel-cli": "6.26.0",
|
||||
"babel-core": "6.26.0",
|
||||
"babel-eslint": "8.0.3",
|
||||
"babel-jest": "^21.2.0",
|
||||
"babel-eslint": "8.2.1",
|
||||
"babel-jest": "22.1.0",
|
||||
"babel-loader": "7.1.2",
|
||||
"babel-plugin-flow-runtime": "0.15.0",
|
||||
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
||||
"babel-plugin-transform-class-properties": "^6.24.1",
|
||||
"babel-plugin-transform-async-to-generator": "6.24.1",
|
||||
"babel-plugin-transform-class-properties": "6.24.1",
|
||||
"babel-plugin-transform-decorators-legacy": "1.3.4",
|
||||
"babel-plugin-transform-es2015-classes": "^6.24.1",
|
||||
"babel-plugin-transform-es2015-classes": "6.24.1",
|
||||
"babel-plugin-transform-runtime": "6.23.0",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-polyfill": "6.26.0",
|
||||
"babel-preset-env": "1.6.1",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-es2015": "6.24.1",
|
||||
"babel-preset-es2015-node4": "2.1.1",
|
||||
"babel-preset-flow": "6.23.0",
|
||||
"babel-preset-react": "6.24.1",
|
||||
|
@ -71,32 +71,33 @@
|
|||
"babel-preset-stage-3": "6.24.1",
|
||||
"babel-register": "^6.26.0",
|
||||
"babel-runtime": "6.26.0",
|
||||
"codecov": "2.2.0",
|
||||
"cross-env": "5.1.1",
|
||||
"css-loader": "0.28.7",
|
||||
"element-react": "1.4.3",
|
||||
"codecov": "3.0.0",
|
||||
"cross-env": "5.1.3",
|
||||
"css-loader": "0.28.8",
|
||||
"element-react": "1.4.5",
|
||||
"element-theme-default": "1.4.12",
|
||||
"enzyme": "^3.2.0",
|
||||
"enzyme-adapter-react-16": "^1.1.0",
|
||||
"eslint": "4.2.0",
|
||||
"eslint": "4.15.0",
|
||||
"eslint-config-google": "0.9.1",
|
||||
"eslint-loader": "1.9.0",
|
||||
"eslint-plugin-babel": "4.1.2",
|
||||
"eslint-plugin-flowtype": "2.39.1",
|
||||
"eslint-plugin-flowtype": "2.41.0",
|
||||
"eslint-plugin-import": "2.8.0",
|
||||
"eslint-plugin-jest": "^21.2.0",
|
||||
"eslint-plugin-react": "7.5.1",
|
||||
"extract-text-webpack-plugin": "3.0.2",
|
||||
"file-loader": "1.1.5",
|
||||
"flow-bin": "0.52.0",
|
||||
"file-loader": "1.1.6",
|
||||
"flow-bin": "0.63.1",
|
||||
"flow-runtime": "0.16.0",
|
||||
"friendly-errors-webpack-plugin": "1.6.1",
|
||||
"fs-extra": "4.0.2",
|
||||
"github-markdown-css": "2.9.0",
|
||||
"github-markdown-css": "2.10.0",
|
||||
"html-webpack-plugin": "2.30.1",
|
||||
"identity-obj-proxy": "^3.0.0",
|
||||
"in-publish": "2.0.0",
|
||||
"jest": "^21.2.1",
|
||||
"jest": "22.1.1",
|
||||
"jest-environment-jsdom": "22.1.0",
|
||||
"jest-environment-jsdom-global": "1.0.2",
|
||||
"localstorage-memory": "1.0.2",
|
||||
"node-sass": "4.7.2",
|
||||
"normalize.css": "7.0.0",
|
||||
|
@ -104,21 +105,21 @@
|
|||
"prop-types": "15.6.0",
|
||||
"react": "16.2.0",
|
||||
"react-dom": "16.2.0",
|
||||
"react-hot-loader": "3.0.0-beta.7",
|
||||
"react-hot-loader": "4.0.0-beta.14",
|
||||
"react-router-dom": "4.2.2",
|
||||
"react-syntax-highlighter": "5.8.0",
|
||||
"rimraf": "2.6.2",
|
||||
"sass-loader": "6.0.6",
|
||||
"source-map-loader": "0.2.3",
|
||||
"standard-version": "4.2.0",
|
||||
"style-loader": "0.19.0",
|
||||
"stylelint": "8.3.1",
|
||||
"stylelint-config-recommended-scss": "^2.0.0",
|
||||
"standard-version": "4.3.0",
|
||||
"style-loader": "0.19.1",
|
||||
"stylelint": "8.4.0",
|
||||
"stylelint-config-recommended-scss": "^3.0.0",
|
||||
"stylelint-scss": "^2.1.0",
|
||||
"stylelint-webpack-plugin": "0.9.0",
|
||||
"stylelint-webpack-plugin": "0.10.1",
|
||||
"url-loader": "0.6.2",
|
||||
"webpack": "3.9.1",
|
||||
"webpack-dev-server": "2.9.5",
|
||||
"webpack": "3.10.0",
|
||||
"webpack-dev-server": "2.11.0",
|
||||
"webpack-merge": "4.1.1"
|
||||
},
|
||||
"keywords": [
|
||||
|
|
|
@ -34,6 +34,11 @@ import type {
|
|||
IPackageStorage,
|
||||
} from '@verdaccio/local-storage';
|
||||
|
||||
import type {
|
||||
IUploadTarball,
|
||||
IReadTarball,
|
||||
} from '@verdaccio/streams';
|
||||
|
||||
/**
|
||||
* Implements Storage interface (same for storage.js, local-storage.js, up-storage.js).
|
||||
*/
|
||||
|
@ -403,7 +408,7 @@ class LocalStorage implements IStorage {
|
|||
|
||||
let length = 0;
|
||||
const shaOneHash = Crypto.createHash('sha1');
|
||||
const uploadStream = new UploadTarball();
|
||||
const uploadStream: IUploadTarball = new UploadTarball();
|
||||
const _transform = uploadStream._transform;
|
||||
const storage = this._getLocalStorage(name);
|
||||
|
||||
|
@ -431,7 +436,7 @@ class LocalStorage implements IStorage {
|
|||
return uploadStream;
|
||||
}
|
||||
|
||||
const writeStream = storage.writeTarball(filename);
|
||||
const writeStream: IUploadTarball = storage.writeTarball(filename);
|
||||
|
||||
writeStream.on('error', (err) => {
|
||||
if (err.code === fileExist) {
|
||||
|
@ -512,7 +517,7 @@ class LocalStorage implements IStorage {
|
|||
* @return {ReadTarball}
|
||||
*/
|
||||
_createFailureStreamResponse() {
|
||||
const stream = new ReadTarball();
|
||||
const stream: IReadTarball = new ReadTarball();
|
||||
|
||||
process.nextTick(() => {
|
||||
stream.emit('error', this._getFileNotAvailable());
|
||||
|
@ -528,7 +533,7 @@ class LocalStorage implements IStorage {
|
|||
* @return {ReadTarball}
|
||||
*/
|
||||
_streamSuccessReadTarBall(storage: any, filename: string) {
|
||||
const stream = new ReadTarball();
|
||||
const stream: IReadTarball = new ReadTarball();
|
||||
const readTarballStream = storage.readTarball(filename);
|
||||
const e404 = Utils.ErrorCode.get404;
|
||||
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
"mocha": true,
|
||||
"es6": true
|
||||
},
|
||||
"globals": {
|
||||
"jsdom": true
|
||||
},
|
||||
"rules": {
|
||||
"valid-jsdoc": 0,
|
||||
"no-redeclare": 1,
|
||||
|
|
|
@ -146,7 +146,7 @@ export default class Server implements IServerBridge {
|
|||
}).send(JSON.stringify(version));
|
||||
}
|
||||
|
||||
putTarballIncomplete(name: string, filename: string, data: any, size: number, cb: Function) {
|
||||
putTarballIncomplete(name: string, filename: string, data: any, size: number, cb: Function): Promise<*> {
|
||||
let promise = this.request({
|
||||
uri: `/${encodeURIComponent(name)}/-/${encodeURIComponent(filename)}/whatever`,
|
||||
method: 'PUT',
|
||||
|
|
|
@ -7,19 +7,10 @@ import SyntaxHighlighter from 'react-syntax-highlighter/dist/light';
|
|||
import Help from '../../../src/webui/src/components/Help';
|
||||
|
||||
describe('<Help /> component', () => {
|
||||
beforeEach(() => {
|
||||
/**
|
||||
* @see https://github.com/facebook/jest/issues/890
|
||||
*/
|
||||
Object.defineProperty(window.location, 'origin', {
|
||||
writable: true,
|
||||
value: 'http://example.com'
|
||||
});
|
||||
});
|
||||
|
||||
it('should set html from props with / base path', () => {
|
||||
Object.defineProperty(window.location, 'pathname', {
|
||||
writable: true,
|
||||
value: '/'
|
||||
jsdom.reconfigure({
|
||||
url: "http://example.com/"
|
||||
});
|
||||
const wrapper = shallow(<Help />);
|
||||
expect(
|
||||
|
@ -33,9 +24,8 @@ describe('<Help /> component', () => {
|
|||
});
|
||||
|
||||
it('should set html from props with someOtherPath', () => {
|
||||
Object.defineProperty(window.location, 'pathname', {
|
||||
writable: true,
|
||||
value: '/someOtherPath'
|
||||
jsdom.reconfigure({
|
||||
url: "http://example.com/someOtherPath"
|
||||
});
|
||||
const wrapper = shallow(<Help />);
|
||||
expect(
|
||||
|
|
Loading…
Add table
Reference in a new issue