@dotnet/jsinterop
Advanced tools
Comparing version 0.1.1 to 3.0.0-preview6.19304.6
@@ -0,0 +0,0 @@ declare module DotNet { |
@@ -223,13 +223,10 @@ "use strict"; | ||
DotNetObject.prototype.serializeAsArg = function () { | ||
return "__dotNetObject:" + this._id; | ||
return { __dotNetObject: this._id }; | ||
}; | ||
return DotNetObject; | ||
}()); | ||
var dotNetObjectValueFormat = /^__dotNetObject\:(\d+)$/; | ||
var dotNetObjectRefKey = '__dotNetObject'; | ||
attachReviver(function reviveDotNetObject(key, value) { | ||
if (typeof value === 'string') { | ||
var match = value.match(dotNetObjectValueFormat); | ||
if (match) { | ||
return new DotNetObject(parseInt(match[1])); | ||
} | ||
if (value && typeof value === 'object' && value.hasOwnProperty(dotNetObjectRefKey)) { | ||
return new DotNetObject(value.__dotNetObject); | ||
} | ||
@@ -236,0 +233,0 @@ // Unrecognized - let another reviver handle it |
{ | ||
"name": "@dotnet/jsinterop", | ||
"version": "0.1.1", | ||
"version": "3.0.0-preview6.19304.6", | ||
"description": "Provides abstractions and features for interop between .NET and JavaScript code.", | ||
@@ -8,19 +8,25 @@ "main": "dist/Microsoft.JSInterop.js", | ||
"scripts": { | ||
"prepublish": "rimraf dist && dotnet build && echo 'Finished building NPM package \"@dotnet/jsinterop\"'" | ||
"clean": "node node_modules/rimraf/bin.js ./dist", | ||
"build": "npm run clean && npm run build:esm", | ||
"build:lint": "node node_modules/tslint/bin/tslint -p ./tsconfig.json", | ||
"build:esm": "node node_modules/typescript/bin/tsc --project ./tsconfig.json" | ||
}, | ||
"files": [ | ||
"dist/**" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/aspnet/Extensions.git" | ||
}, | ||
"author": "Microsoft", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/dotnet/jsinterop/issues" | ||
"url": "https://github.com/aspnet/Extensions/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dotnet/jsinterop.git" | ||
}, | ||
"homepage": "https://github.com/aspnet/Extensions/tree/master/src/JSInterop#readme", | ||
"files": [ | ||
"dist/**" | ||
], | ||
"devDependencies": { | ||
"rimraf": "^2.5.4" | ||
"rimraf": "^2.5.4", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.7.1" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
24426
3
334