typings-core
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -225,3 +225,3 @@ "use strict"; | ||
}) | ||
.catch(function (err) { return undefined; }); | ||
.catch(function () { return undefined; }); | ||
} | ||
@@ -228,0 +228,0 @@ return Promise.resolve(); |
@@ -71,5 +71,6 @@ "use strict"; | ||
}); | ||
nock('http://raw.githubusercontent.com/') | ||
nock('https://raw.githubuserstuff.com/') | ||
.get('/DefinitelyTyped/DefinitelyTyped/48c1e3c1d6baefa4f1a126f188c27c4fefd36bff/node/node.d.ts') | ||
.reply(200, '// Type definitions for Node.js v4.x'); | ||
rc_1.default.urlRewrites = { '(.*)content(.*)': '$1stuff$2' }; | ||
return fs_1.writeFile(CONFIG, '{}') | ||
@@ -76,0 +77,0 @@ .then(function () { |
@@ -14,2 +14,5 @@ export interface RcConfig { | ||
defaultSource?: string; | ||
urlRewrites?: { | ||
[pattern: string]: string; | ||
}; | ||
} |
@@ -11,2 +11,3 @@ "use strict"; | ||
var popsicleRetry = require('popsicle-retry'); | ||
var popsicleRewrite = require('popsicle-rewrite'); | ||
var detectIndent = require('detect-indent'); | ||
@@ -118,2 +119,3 @@ var sortKeys = require('sort-keys'); | ||
.use(popsicleStatus(200)) | ||
.use(popsicleRewrite(rc_1.default.urlRewrites || {})) | ||
.use(function (request, next) { | ||
@@ -120,0 +122,0 @@ if (request.Url.host === registryURL.host) { |
{ | ||
"name": "typings-core", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "The logic of Typings", | ||
@@ -63,2 +63,3 @@ "main": "dist/typings.js", | ||
"popsicle-retry": "^3.2.0", | ||
"popsicle-rewrite": "^1.0.0", | ||
"popsicle-status": "^2.0.0", | ||
@@ -65,0 +66,0 @@ "promise-finally": "^2.0.1", |
@@ -31,3 +31,2 @@ { | ||
"touch": "registry:npm/touch#1.0.0+20160211003958", | ||
"typescript": "npm:typescript", | ||
"xtend": "registry:npm/xtend#4.0.0+20160211003958", | ||
@@ -41,5 +40,4 @@ "zip-object": "registry:npm/zip-object#0.1.0+20160211003958" | ||
"globalDependencies": { | ||
"core": "npm:typescript/lib/lib.core.d.ts", | ||
"node": "registry:env/node#6.0.0+20160622202520" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
470757
4227
32
+ Addedpopsicle-rewrite@^1.0.0
+ Addedpopsicle-rewrite@1.0.0(transitive)