forked from justadudewhohacks/opencv4nodejs
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getRequire = exports.getDirName = void 0; | ||
|
||
function getDirName() { | ||
return __dirname; | ||
} | ||
exports.getDirName = getDirName; | ||
|
||
function getRequire() { | ||
return require; | ||
} | ||
exports.getRequire = getRequire; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { createRequire } from 'node:module'; | ||
import { fileURLToPath } from 'node:url'; | ||
export function getDirName() { | ||
return fileURLToPath(new URL('.', import.meta.url)); | ||
} | ||
export function getRequire() { | ||
return createRequire(import.meta.url); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { type OpenCVBuildEnvParams } from '@u4/opencv-build'; | ||
import type * as openCV from '../../typings/index'; | ||
import type * as openCV from '../../typings/index.js'; | ||
declare type OpenCVType = typeof openCV; | ||
export declare function getOpenCV(opt?: OpenCVBuildEnvParams): OpenCVType; | ||
export default getOpenCV; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference types="node" /> | ||
export declare function getDirName(): string; | ||
export declare function getRequire(): NodeRequire; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import type * as openCV from '../../typings/index'; | ||
export type * as openCV from '../../typings/index'; | ||
import type * as openCV from '../../typings/index.js'; | ||
export type * as openCV from '../../typings/index.js'; | ||
export declare const cv: typeof openCV; | ||
declare const defExport: { | ||
[key: string]: any; | ||
}; | ||
export { getDirName, getRequire } from "./meta.js"; | ||
export default defExport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import type * as openCV from '../../../typings/index'; | ||
import type * as openCV from '../../../typings/index.js'; | ||
export default function (cv: typeof openCV): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import * as OpenCV from '../../../typings/index'; | ||
import * as OpenCV from '../../../typings/index.js'; | ||
export default function extendWithJsSources(cv: typeof OpenCV): typeof OpenCV; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters