@nodert-win10-rs4/windows.media.effects
Advanced tools
Comparing version 0.1.0 to 0.3.2
@@ -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_Effects.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Media_Effects.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_Effects.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Media_Effects.d.js'); | ||
} else { | ||
module.exports = require('../build/Release/binding.node'); | ||
} | ||
catch(e) { | ||
throw e; | ||
} | ||
var externalReferencedNamespaces = ['Windows.Media', 'Windows.Graphics.DirectX.Direct3D11', 'Windows.Media.Editing', 'Windows.Storage.Streams', 'Windows.Media.Render', 'Windows.Media.Capture', 'Windows.Media.MediaProperties', 'Windows.Media.Playback', 'Windows.Media.Transcoding']; | ||
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 @@ |
@@ -0,0 +0,0 @@ declare module "windows.media.effects" { |
{ | ||
"name": "@nodert-win10-rs4/windows.media.effects", | ||
"version": "0.1.0", | ||
"version": "0.3.2", | ||
"description": "Use the Windows.Media.Effects UWP API directly from Node.js", | ||
"main": "lib/main.js", | ||
"scripts" : { | ||
"install" : "node-gyp rebuild --msvs_version=2017" | ||
}, | ||
"os": [ | ||
"win32" | ||
], | ||
"keywords": [ | ||
@@ -42,3 +36,3 @@ "Windows.Media.Effects", | ||
"Microsoft" | ||
], | ||
], | ||
"dependencies" : { | ||
@@ -53,5 +47,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.effects | ||
@nodert-win10-rs4/windows.media.effects | ||
===== | ||
@@ -36,3 +36,3 @@ | ||
``` | ||
npm install windows.media.effects | ||
npm install @nodert-win10-rs4/windows.media.effects | ||
``` | ||
@@ -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
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
387206
0
100
641
2