-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
fe05495
commit 0cb5ff0
Showing
34 changed files
with
165 additions
and
233 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
engines: | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
eslint: | ||
enabled: true | ||
fixme: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.js" | ||
- "**.jsx" | ||
paths: | ||
- "**.js" | ||
- "**.jsx" | ||
exclude_paths: | ||
- test/**/* | ||
- test/**/* |
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,26 +1,24 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'prettier' | ||
], | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: 'module', // Allows for the use of imports | ||
}, | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-constant-condition": "off" | ||
}, | ||
parser: "@typescript-eslint/parser", // Specifies the ESLint parser | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
"prettier", | ||
], | ||
plugins: ["@typescript-eslint"], | ||
parserOptions: { | ||
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features | ||
sourceType: "module", // Allows for the use of imports | ||
}, | ||
rules: { | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
// e.g. "@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-constant-condition": "off", | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ module.exports = { | |
singleQuote: false, | ||
printWidth: 132, | ||
tabWidth: 4, | ||
}; | ||
}; |
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 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "4.12.0", | ||
"npmClient": "npm" | ||
} | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"version": "4.12.0", | ||
"npmClient": "npm" | ||
} |
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 |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
"tsup": "^8.3.5", | ||
"typescript": "^5.7.2" | ||
} | ||
} | ||
} |
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,4 @@ | ||
{ | ||
"require": [ | ||
"../../node_modules/should", | ||
"../../node_modules/source-map-support/register" | ||
], | ||
"require": ["../../node_modules/should", "../../node_modules/source-map-support/register"], | ||
"extension": ["js"] | ||
} | ||
} |
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
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,14 +1,8 @@ | ||
{ | ||
"extends": "../tslint.json", | ||
"rules": { | ||
"no-console": [ | ||
false | ||
], | ||
"only-arrow-functions": [ | ||
false | ||
], | ||
"space-before-function-paren": [ | ||
false | ||
] | ||
} | ||
} | ||
"extends": "../tslint.json", | ||
"rules": { | ||
"no-console": [false], | ||
"only-arrow-functions": [false], | ||
"space-before-function-paren": [false] | ||
} | ||
} |
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,8 +1,6 @@ | ||
import * as c from "node-opcua-crypto"; | ||
|
||
|
||
async function a(){ | ||
c.generateKeyPair(2048); | ||
|
||
async function a() { | ||
c.generateKeyPair(2048); | ||
} | ||
a(); |
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 |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
"extends": "./tsconfig.common.json", | ||
"include": ["./test/*.ts", "./test/**/*.ts"] | ||
} | ||
|
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 |
---|---|---|
|
@@ -14,10 +14,9 @@ build({ | |
polyfills: { | ||
crypto: true, | ||
constants: true, | ||
} | ||
}, | ||
}), | ||
], | ||
}); | ||
|
||
|
||
console.log("done"); |
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,37 +1,37 @@ | ||
{ | ||
"name": "node-opcua-crypto-web", | ||
"private": true, | ||
"version": "4.12.0", | ||
"description": "Crypto tools for Node-OPCUA", | ||
"scripts": { | ||
"build:tsup": "tsup --config tsup.config.mjs --clean", | ||
"build": "node bin/esbuild.mjs", | ||
"tslint": "tslint --project . --fix", | ||
"lint": "eslint . --ext .ts", | ||
"prettier-format": "prettier --config .prettierrc.js source/**/*.ts test/**/*.ts --write", | ||
"demo": "npx http-server ." | ||
}, | ||
"keywords": [ | ||
"OPCUA", | ||
"opcua", | ||
"m2m", | ||
"iot", | ||
"opc ua", | ||
"internet of things" | ||
], | ||
"author": "Etienne Rossignon", | ||
"license": "MIT", | ||
"engine": { | ||
"node": ">=16.0" | ||
}, | ||
"dependencies": { | ||
"node-opcua-crypto": "^4.12.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/node-opcua/node-opcua-crypto.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/node-opcua/node-opcua-crypto/issues" | ||
} | ||
"name": "node-opcua-crypto-web", | ||
"private": true, | ||
"version": "4.12.0", | ||
"description": "Crypto tools for Node-OPCUA", | ||
"scripts": { | ||
"build:tsup": "tsup --config tsup.config.mjs --clean", | ||
"build": "node bin/esbuild.mjs", | ||
"tslint": "tslint --project . --fix", | ||
"lint": "eslint . --ext .ts", | ||
"prettier-format": "prettier --config .prettierrc.js source/**/*.ts test/**/*.ts --write", | ||
"demo": "npx http-server ." | ||
}, | ||
"keywords": [ | ||
"OPCUA", | ||
"opcua", | ||
"m2m", | ||
"iot", | ||
"opc ua", | ||
"internet of things" | ||
], | ||
"author": "Etienne Rossignon", | ||
"license": "MIT", | ||
"engine": { | ||
"node": ">=16.0" | ||
}, | ||
"dependencies": { | ||
"node-opcua-crypto": "^4.12.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/node-opcua/node-opcua-crypto.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/node-opcua/node-opcua-crypto/issues" | ||
} | ||
} |
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,10 +1,10 @@ | ||
import { defineConfig } from 'tsup' | ||
import { defineConfig } from "tsup"; | ||
|
||
export default defineConfig({ | ||
entry: ['web/main.ts'], | ||
entry: ["web/main.ts"], | ||
splitting: false, | ||
sourcemap: true, | ||
format: ['esm'], | ||
format: ["esm"], | ||
bundle: true, | ||
clean: true, | ||
}) | ||
}); |
Oops, something went wrong.