fix(core): update
This commit is contained in:
parent
1e90ec38e4
commit
14616a8cc8
22161
package-lock.json
generated
22161
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
@ -5,6 +5,7 @@
|
||||
"description": "a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"type": "module",
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
@ -12,18 +13,18 @@
|
||||
"build": "(tsbuild --web)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.0.22",
|
||||
"@gitzone/tstest": "^1.0.52",
|
||||
"@pushrocks/tapbundle": "^3.0.7",
|
||||
"@types/node": "^14.14.2",
|
||||
"@gitzone/tsbuild": "^2.1.63",
|
||||
"@gitzone/tstest": "^1.0.72",
|
||||
"@pushrocks/tapbundle": "^5.0.4",
|
||||
"@types/node": "^18.6.3",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apiglobal/typedrequest": "^1.0.54",
|
||||
"@apiglobal/typedrequest": "^2.0.8",
|
||||
"@consentsoftware/interfaces": "^1.0.11",
|
||||
"@pushrocks/smarttime": "^3.0.37",
|
||||
"@pushrocks/webstore": "^1.0.16"
|
||||
"@pushrocks/webstore": "^2.0.5"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
|
@ -1,32 +1,32 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import * as webclient from '../ts/index';
|
||||
import * as webclient from '../ts/index.js';
|
||||
|
||||
let testClient: webclient.CsWebclient;
|
||||
|
||||
tap.test('should create an instance of webclient', async () => {
|
||||
testClient = new webclient.CsWebclient();
|
||||
expect(testClient).to.be.instanceOf(webclient.CsWebclient);
|
||||
expect(testClient).toBeInstanceOf(webclient.CsWebclient);
|
||||
});
|
||||
|
||||
tap.test('should return false when asked for present settings', async () => {
|
||||
const result = await testClient.isCookieLevelSet();
|
||||
expect(result).to.be.false;
|
||||
expect(result).toBeFalse();
|
||||
});
|
||||
|
||||
tap.test('should create a cookielevel setting', async () => {
|
||||
await testClient.setCookieLevels(['functional']);
|
||||
const result = await testClient.getCookieLevels();
|
||||
expect(result).to.contain('functional');
|
||||
expect(result).toContain('functional');
|
||||
});
|
||||
|
||||
tap.test('should return true when asked for present settings', async () => {
|
||||
const result = await testClient.isCookieLevelSet();
|
||||
expect(result).to.be.true;
|
||||
expect(result).toBeTrue();
|
||||
});
|
||||
|
||||
tap.test('should validity for present settings', async () => {
|
||||
const result = await testClient.isCookieLevelStillValid();
|
||||
expect(result).to.be.true;
|
||||
expect(result).toBeTrue();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@consentsoftware/webclient',
|
||||
version: '1.0.15',
|
||||
description: 'a webclient for using consent.software in your website. Works with vanilla js, angular, react, you name it.'
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './webclient.plugins';
|
||||
import * as plugins from './webclient.plugins.js';
|
||||
|
||||
export class CsWebclient {
|
||||
webstore: plugins.webstore.WebStore<plugins.csInterfaces.IWebclientSettings>;
|
||||
|
17
tslint.json
17
tslint.json
@ -1,17 +0,0 @@
|
||||
{
|
||||
"extends": ["tslint:latest", "tslint-config-prettier"],
|
||||
"rules": {
|
||||
"semicolon": [true, "always"],
|
||||
"no-console": false,
|
||||
"ordered-imports": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"member-ordering": {
|
||||
"options":{
|
||||
"order": [
|
||||
"static-method"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"defaultSeverity": "warning"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user