UNPKG

2.3 kBJavaScriptView Raw
1#!/usr/bin/env node
2/* eslint-disable @typescript-eslint/no-var-requires */
3// ---------------------------------------------------------------------------------------------------------------------
4// node-opcua-pki
5// ---------------------------------------------------------------------------------------------------------------------
6// Copyright (c) 2014-2020 - Etienne Rossignon - etienne.rossignon (at) gadz.org
7// ---------------------------------------------------------------------------------------------------------------------
8//
9// This project is licensed under the terms of the MIT license.
10//
11// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
12// documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
13// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
14// permit persons to whom the Software is furnished to do so, subject to the following conditions:
15//
16// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
17// Software.
18//
19// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20// WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
21// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23// ---------------------------------------------------------------------------------------------------------------------
24"use strict";
25
26// note: we remove use of update-notifier as it is ESM now and
27// old version have reported vulnerabilities
28//xx const updateNotifier = require("update-notifier");
29// eslint-disable-next-line @typescript-eslint/no-unused-vars
30const _pkg = require("../package.json");
31
32// eslint-disable-next-line no-undef
33require("../dist/lib/ca/crypto_create_CA.js").main(process.argv.splice(2), () => {
34 /* empty */
35 // xx updateNotifier({pkg}).notify();
36
37});