-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: resolve imports manually * ci: add E2E tests * ci: fix build * chore: remove comments * chore: remove debug * ci: add typings tests * chore: standardize typings style
- Loading branch information
1 parent
becb048
commit e1b0ae7
Showing
11 changed files
with
95 additions
and
9 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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { Profiles } from "./@types/profiles.js"; | ||
export declare const proxyBundle: Profiles; | ||
declare const profiles: Profiles; | ||
declare module "aws-ssl-profiles" { | ||
const profiles: Profiles & { proxyBundle: Profiles }; | ||
export = profiles; | ||
} | ||
export default profiles; |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { test, strict } from 'poku'; | ||
import awsCaBundle, { proxyBundle } from '../../lib/index.js'; | ||
|
||
test('Testing import (ESM)', () => { | ||
strict(typeof awsCaBundle?.ca?.length === 'number', 'Default import'); | ||
strict(typeof proxyBundle?.ca?.length === 'number', '"proxyBundle" import'); | ||
strict( | ||
typeof awsCaBundle.proxyBundle?.ca?.length === 'number', | ||
'"proxyBundle" from default import' | ||
); | ||
}); |
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,14 @@ | ||
'use strict'; | ||
|
||
const { test, strict } = require('poku'); | ||
const awsCaBundle = require('../../lib/index.js'); | ||
const { proxyBundle } = require('../../lib/index.js'); | ||
|
||
test('Testing require (CJS)', () => { | ||
strict(typeof awsCaBundle?.ca?.length === 'number', 'Default require'); | ||
strict(typeof proxyBundle?.ca?.length === 'number', '"proxyBundle" require'); | ||
strict( | ||
typeof awsCaBundle.proxyBundle?.ca?.length === 'number', | ||
'"proxyBundle" from default require' | ||
); | ||
}); |
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,9 @@ | ||
import { test, strict } from 'poku'; | ||
import { readFile } from 'node:fs/promises'; | ||
|
||
test('Ensure index.d.ts Typings', async () => { | ||
const src = await readFile('./src/index.d.ts', 'utf-8'); | ||
const lib = await readFile('./lib/index.d.ts', 'utf-8'); | ||
|
||
strict.strictEqual(src, lib, '"src" and "lib" should be the same the same'); | ||
}); |
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