@nodert-win10-rs4/windows.media.transcoding
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_Transcoding.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Media_Transcoding.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_Transcoding.d.js)'))) { | ||
module.exports = require('./NodeRT_Windows_Media_Transcoding.d.js'); | ||
} else { | ||
module.exports = require('../build/Release/binding.node'); | ||
} | ||
catch(e) { | ||
throw e; | ||
} | ||
var externalReferencedNamespaces = ['Windows.Storage', 'Windows.Media.MediaProperties', '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 @@ _MediaVideoProcessingAlgorithm = function () { |
@@ -0,0 +0,0 @@ declare module "windows.media.transcoding" { |
{ | ||
"name": "@nodert-win10-rs4/windows.media.transcoding", | ||
"version": "0.1.0", | ||
"version": "0.3.2", | ||
"description": "Use the Windows.Media.Transcoding UWP API directly from Node.js", | ||
"main": "lib/main.js", | ||
"scripts" : { | ||
"install" : "node-gyp rebuild --msvs_version=2017" | ||
}, | ||
"os": [ | ||
"win32" | ||
], | ||
"keywords": [ | ||
@@ -24,3 +18,3 @@ "Windows.Media.Transcoding", | ||
"Microsoft" | ||
], | ||
], | ||
"dependencies" : { | ||
@@ -35,5 +29,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.transcoding | ||
@nodert-win10-rs4/windows.media.transcoding | ||
===== | ||
@@ -36,3 +36,3 @@ | ||
``` | ||
npm install windows.media.transcoding | ||
npm install @nodert-win10-rs4/windows.media.transcoding | ||
``` | ||
@@ -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
193673
0
100
183
2