mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: migrate to esm
This commit is contained in:
@@ -12,14 +12,14 @@
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {ConnectorClient} from '@openstapps/api/lib/connector-client';
|
||||
import {HttpClient} from '@openstapps/api/lib/http-client';
|
||||
import {ConnectorClient} from '@openstapps/api/lib/connector-client.js';
|
||||
import {HttpClient} from '@openstapps/api/lib/http-client.js';
|
||||
import {
|
||||
SCLicensePlate,
|
||||
SCNamespaces,
|
||||
SCThings,
|
||||
} from '@openstapps/core';
|
||||
import {Connector} from './connector';
|
||||
import {Connector} from './connector.js';
|
||||
|
||||
/**
|
||||
* Checks if the input is a valid SCNamespace
|
||||
@@ -33,10 +33,10 @@ export function isValidSCNamespace(input: string): input is SCLicensePlate {
|
||||
|
||||
/**
|
||||
* Creates a uuid from a JSON stringified item identifier
|
||||
*
|
||||
*
|
||||
* You may create custom itemIdentifier-Interfaces to generate UIDs consistently
|
||||
*
|
||||
* @param itemIdentifier Identifying representation of the item
|
||||
* @param itemIdentifier Identifying representation of the item
|
||||
* @param licensePlate License plate of the school
|
||||
*/
|
||||
export function createUUID(itemIdentifier: unknown, licensePlate: SCLicensePlate): string {
|
||||
|
||||
Reference in New Issue
Block a user