Socket
Socket
Sign inDemoInstall

@nodert-win10-rs4/windows.media.mediaproperties

Package Overview
Dependencies
13
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.3.2

90

lib/main.js

@@ -1,63 +0,67 @@

// Copyright (c) Microsoft Corporation
// Copyright (c) Microsoft Corporation, Nadav Bar, and Felix Rieseberg
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
// Licensed under the Apache License, Version 2.0 (the ""License""); you may
// not use this file except in compliance with the License. You may obtain a
// copy of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
// THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS
// OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
// IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
// MERCHANTABLITY OR NON-INFRINGEMENT.
//
// See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.
// See the Apache Version 2.0 License for specific language governing permissions
// and limitations under the License.
var path = require('path');
var fs = require('fs');
var npmScope = '';
var npmScope = 'nodert-win10-rs4';
try {
// this little trick makes node.js Tools for VS load intellisense for the module
if (fs.existsSync(path.join(__dirname, 'NodeRT_Windows_Media_MediaProperties.d.js)'))) {
module.exports = require('./NodeRT_Windows_Media_MediaProperties.d.js');
}
// this little trick makes node.js Tools for VS load intellisense for the module
if (fs.existsSync(path.join(__dirname, 'NodeRT_Windows_Media_MediaProperties.d.js)'))) {
module.exports = require('./NodeRT_Windows_Media_MediaProperties.d.js');
} else {
module.exports = require('../build/Release/binding.node');
}
catch(e) {
throw e;
}
var externalReferencedNamespaces = ['Windows.Storage', 'Windows.Storage.Streams', 'Windows.Media.Core'];
if (externalReferencedNamespaces.length > 0) {
var namespaceRegistry = global.__winRtNamespaces__;
var namespaceRegistry = global.__winRtNamespaces__;
if (!namespaceRegistry) {
namespaceRegistry = {};
Object.defineProperty(global, '__winRtNamespaces__', {
configurable: true,
writable: false,
enumerable: false,
value: namespaceRegistry
});
}
if (!namespaceRegistry) {
namespaceRegistry = {};
Object.defineProperty(global, '__winRtNamespaces__', {
configurable: true,
writable: false,
enumerable: false,
value: namespaceRegistry
});
}
function requireNamespace(namespace) {
var moduleName = namespace.toLowerCase();
if (npmScope) {
moduleName = '@' + npmScope + '/' + moduleName;
}
function requireNamespace(namespace) {
var moduleName = namespace.toLowerCase();
var m = require(moduleName);
delete namespaceRegistry[namespace];
namespaceRegistry[namespace] = m;
return m;
if (npmScope) {
moduleName = '@' + npmScope + '/' + moduleName;
}
for (var i in externalReferencedNamespaces) {
var ns = externalReferencedNamespaces[i];
if (!namespaceRegistry.hasOwnProperty(ns)) {
Object.defineProperty(namespaceRegistry, ns, {
configurable: true,
enumerable: true,
get: requireNamespace.bind(null, ns)
});
}
var m = require(moduleName);
delete namespaceRegistry[namespace];
namespaceRegistry[namespace] = m;
return m;
}
for (var i in externalReferencedNamespaces) {
var ns = externalReferencedNamespaces[i];
if (!namespaceRegistry.hasOwnProperty(ns)) {
Object.defineProperty(namespaceRegistry, ns, {
configurable: true,
enumerable: true,
get: requireNamespace.bind(null, ns)
});
}
}
}
}

@@ -0,0 +0,0 @@ _StereoscopicVideoPackingMode = function () {

@@ -0,0 +0,0 @@ declare module "windows.media.mediaproperties" {

{
"name": "@nodert-win10-rs4/windows.media.mediaproperties",
"version": "0.1.0",
"version": "0.3.2",
"description": "Use the Windows.Media.MediaProperties UWP API directly from Node.js",
"main": "lib/main.js",
"scripts" : {
"install" : "node-gyp rebuild --msvs_version=2017"
},
"os": [
"win32"
],
"keywords": [

@@ -40,3 +34,3 @@ "Windows.Media.MediaProperties",

"Microsoft"
],
],
"dependencies" : {

@@ -51,5 +45,8 @@ "nan" : "latest"

"author": "Generated by NodeRT",
"contributors": ["nadavbar <nadavbar@gmail.com> (http://www.nadavos.com)", "sidneys <sidneys.github.io@outlook.com> (https://sidneys.github.io)"],
"contributors": [
"nadavbar <nadavbar@gmail.com> (http://www.nadavos.com)",
"Felix Rieseberg <felix@felixrieseberg.com> (https://www.felix.fun)"
],
"gypfile": true,
"license": "Apache-2.0"
}

@@ -1,2 +0,2 @@

windows.media.mediaproperties
@nodert-win10-rs4/windows.media.mediaproperties
=====

@@ -36,3 +36,3 @@

```
npm install windows.media.mediaproperties
npm install @nodert-win10-rs4/windows.media.mediaproperties
```

@@ -39,0 +39,0 @@

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

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

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc