Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dotnet/jsinterop

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotnet/jsinterop - npm Package Compare versions

Comparing version 0.1.1 to 3.0.0-preview6.19304.6

0

dist/Microsoft.JSInterop.d.ts

@@ -0,0 +0,0 @@ declare module DotNet {

11

dist/Microsoft.JSInterop.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc