@cedx/free-mobile
Advanced tools
Comparing version 15.1.0 to 15.1.1
/** | ||
* Sends messages by SMS to a [FreeMobile](https://mobile.free.fr) account. | ||
*/ | ||
export declare class Client { | ||
export class Client { | ||
/** | ||
* Creates a new client. | ||
* @param {string} account The Free Mobile account. | ||
* @param {string} apiKey The Free Mobile API key. | ||
* @param {string|URL} baseUrl The base URL of the remote API endpoint. | ||
*/ | ||
constructor(account: string, apiKey: string, baseUrl?: string | URL); | ||
/** | ||
* The Free Mobile account. | ||
* @type {string} | ||
* @readonly | ||
*/ | ||
@@ -11,2 +20,4 @@ readonly account: string; | ||
* The Free Mobile API key. | ||
* @type {string} | ||
* @readonly | ||
*/ | ||
@@ -16,15 +27,10 @@ readonly apiKey: string; | ||
* The base URL of the remote API endpoint. | ||
* @type {URL} | ||
* @readonly | ||
*/ | ||
readonly baseUrl: URL; | ||
/** | ||
* Creates a new client. | ||
* @param account The Free Mobile account. | ||
* @param apiKey The Free Mobile API key. | ||
* @param baseUrl The base URL of the remote API endpoint. | ||
*/ | ||
constructor(account: string, apiKey: string, baseUrl?: string); | ||
/** | ||
* Sends an SMS message to the underlying account. | ||
* @param message The message text. | ||
* @returns Resolves when the message has been sent. | ||
* @param {string} message The message text. | ||
* @returns {Promise<void>} Resolves when the message has been sent. | ||
*/ | ||
@@ -31,0 +37,0 @@ sendMessage(message: string): Promise<void>; |
@@ -9,3 +9,3 @@ { | ||
"type": "module", | ||
"version": "15.1.0", | ||
"version": "15.1.1", | ||
"author": { | ||
@@ -17,15 +17,19 @@ "email": "cedric@belin.io", | ||
"devDependencies": { | ||
"@types/node": "^20.11.6", | ||
"@typescript-eslint/eslint-plugin": "^6.19.1", | ||
"@typescript-eslint/parser": "^6.19.1", | ||
"eslint": "^8.56.0", | ||
"typedoc": "^0.25.7", | ||
"typescript": "^5.3.3" | ||
"@babel/eslint-parser": "^7.24.7", | ||
"@babel/plugin-syntax-import-attributes": "^7.24.7", | ||
"@types/gulp": "^4.0.17", | ||
"@types/node": "^20.14.2", | ||
"del": "^7.1.0", | ||
"eslint": "^9.5.0", | ||
"execa": "^9.2.0", | ||
"globals": "^15.4.0", | ||
"gulp": "^5.0.0", | ||
"typescript": "^5.4.5" | ||
}, | ||
"engines": { | ||
"node": ">=20.0.0" | ||
"node": ">=22.0.0" | ||
}, | ||
"exports": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.js" | ||
"default": "./src/index.js" | ||
}, | ||
@@ -36,8 +40,2 @@ "files": [ | ||
], | ||
"imports": { | ||
"#freeMobile": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.js" | ||
} | ||
}, | ||
"keywords": [ | ||
@@ -51,11 +49,5 @@ "api", | ||
"scripts": { | ||
"build": "tsc --project src/tsconfig.json", | ||
"clean": "node tool/clean.js", | ||
"doc": "typedoc --options etc/typedoc.js && node tool/doc.js", | ||
"dist": "npm run clean && npm run build", | ||
"lint": "tsc --project tsconfig.json && eslint --config=etc/eslint.cjs example src test tool", | ||
"postpublish": "node tool/publish.js", | ||
"prepack": "npm run dist", | ||
"test": "npm run build && node --test --test-reporter=spec" | ||
"prepack": "gulp", | ||
"test": "node --test --test-reporter=spec" | ||
} | ||
} |
# Free Mobile for JS | ||
![Node.js](https://badgen.net/npm/node/@cedx/free-mobile) ![npm](https://badgen.net/npm/v/@cedx/free-mobile) ![License](https://badgen.net/npm/license/@cedx/free-mobile) ![Downloads](https://badgen.net/npm/dt/@cedx/free-mobile) | ||
Send SMS messages to your [Free Mobile](https://mobile.free.fr) account, | ||
Send SMS messages to your [Free Mobile](https://mobile.free.fr) device, | ||
in [JavaScript](https://developer.mozilla.org/docs/Web/JavaScript). | ||
## Documentation | ||
- [User guide](https://cedx.github.io/free-mobile.js) | ||
- [API reference](https://cedx.github.io/free-mobile.js/api) | ||
- [User guide](https://github.com/cedx/free-mobile.js/wiki) | ||
- [Examples](https://github.com/cedx/free-mobile.js/tree/main/example) | ||
## Development | ||
- [Git repository](https://github.com/cedx/free-mobile.js) | ||
- [npm package](https://www.npmjs.com/package/@cedx/free-mobile) | ||
- [Submit an issue](https://github.com/cedx/free-mobile.js/issues) | ||
@@ -15,0 +14,0 @@ |
{ | ||
"extends": "../tsconfig", | ||
"include": ["**/*.ts"], | ||
"extends": "../tsconfig.json", | ||
"include": ["**/*.js"], | ||
"compilerOptions": { | ||
"declaration": true, | ||
"declarationMap": true, | ||
"emitDeclarationOnly": true, | ||
"incremental": true, | ||
"noEmit": false, | ||
"outDir": "../lib" | ||
"outDir": "../lib", | ||
"tsBuildInfoFile": "../var/tsbuildinfo.json" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
6272
10
10
96
17