diff options
author | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
---|---|---|
committer | Danijel Andjelkovic <adanijel99@gmail.com> | 2022-03-01 21:54:41 +0100 |
commit | 6c8128f9fd5a5d0be115806c35a21b3d683df8d6 (patch) | |
tree | f46c2f6b3b9b294ff32bd75c08ccdc9e7a8cc4ef /sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js | |
parent | 2400b84e95913665da6279114168148444b8f9ab (diff) | |
parent | 7d3640f824f46490b47bd95f1c5a16644f712068 (diff) |
Merge branch 'dev' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into logo
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js')
-rw-r--r-- | sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js new file mode 100644 index 00000000..1c88d8ee --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/@angular-devkit/schematics/tools/export-ref.js @@ -0,0 +1,35 @@ +"use strict"; +/** + * @license + * Copyright Google LLC All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ExportStringRef = void 0; +const path_1 = require("path"); +class ExportStringRef { + constructor(ref, parentPath = process.cwd(), inner = true) { + const [path, name] = ref.split('#', 2); + this._module = path[0] == '.' ? (0, path_1.resolve)(parentPath, path) : path; + this._module = require.resolve(this._module); + this._path = (0, path_1.dirname)(this._module); + if (inner) { + this._ref = require(this._module)[name || 'default']; + } + else { + this._ref = require(this._module); + } + } + get ref() { + return this._ref; + } + get module() { + return this._module; + } + get path() { + return this._path; + } +} +exports.ExportStringRef = ExportStringRef; |