Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f13c259

Browse filesBrowse files
Update aspnet-prerendering to use TS 2.0 and @types
1 parent bc42e59 commit f13c259
Copy full SHA for f13c259

File tree

Expand file treeCollapse file tree

4 files changed

+10
-22
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-22
lines changed
Open diff view settings
Collapse file

‎src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/package.json
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
7+
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"aspnet-prerendering\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
@@ -21,6 +21,8 @@
2121
"es6-promise": "^3.1.2"
2222
},
2323
"devDependencies": {
24+
"@types/node": "^6.0.42",
25+
"@types/whatwg-fetch": "0.0.31",
2426
"rimraf": "^2.5.4",
2527
"typescript": "^2.0.0"
2628
}
Collapse file

‎src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/src/Prerendering.ts‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/src/Prerendering.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function findBootFunc(applicationBasePath: string, bootModule: BootModuleInfo, c
174174

175175
function bindPromiseContinuationsToDomain(promise: Promise<any>, domainInstance: domain.Domain) {
176176
const originalThen = promise.then;
177-
promise.then = function then(resolve, reject) {
177+
promise.then = (function then(resolve, reject) {
178178
if (typeof resolve === 'function') {
179179
resolve = domainInstance.bind(resolve);
180180
}
@@ -184,5 +184,5 @@ function bindPromiseContinuationsToDomain(promise: Promise<any>, domainInstance:
184184
}
185185

186186
return originalThen.call(this, resolve, reject);
187-
};
187+
}) as any;
188188
}
Collapse file

‎src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/tsconfig.json‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/tsconfig.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"module": "commonjs",
55
"target": "es5",
66
"declaration": true,
7-
"outDir": "."
7+
"outDir": ".",
8+
"lib": ["es2015", "dom"]
89
},
10+
"files": [
11+
"src/index.ts"
12+
],
913
"exclude": [
1014
"node_modules"
1115
]
Collapse file

‎src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/tsd.json‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/tsd.json
-18Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.