@live-change/session-service 0.3.41 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/authenticator.js +4 -4
- package/definition.js +3 -3
- package/index.js +8 -8
- package/localIdValidator.js +3 -3
- package/model.js +2 -2
- package/package.json +5 -4
- package/sessionItem.js +6 -5
- package/sessionProperty.js +3 -3
package/authenticator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import definition from './definition.js'
|
|
4
|
+
import { Session } from './model.js'
|
|
5
|
+
import { createHmac } from 'crypto'
|
|
6
6
|
const config = definition.config
|
|
7
7
|
|
|
8
8
|
definition.authenticator({
|
package/definition.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
import relationsPlugin from '@live-change/relations-plugin'
|
|
5
5
|
|
|
6
6
|
const definition = app.createServiceDefinition({
|
|
7
7
|
name: "session",
|
|
8
8
|
use: [ relationsPlugin ]
|
|
9
9
|
})
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
export default definition
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import App from '@live-change/framework'
|
|
2
2
|
const app = App.app()
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import definition from './definition.js'
|
|
4
|
+
import { Session } from './model.js'
|
|
5
5
|
|
|
6
6
|
definition.view({
|
|
7
7
|
name: 'currentSession',
|
|
@@ -76,9 +76,9 @@ definition.trigger({
|
|
|
76
76
|
}
|
|
77
77
|
})
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
import './authenticator.js'
|
|
80
|
+
import './localIdValidator.js'
|
|
81
|
+
import './sessionProperty.js'
|
|
82
|
+
import './sessionItem.js'
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
export default definition
|
package/localIdValidator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import definition from './definition.js'
|
|
2
|
+
import { decodeUid } from "@live-change/uid"
|
|
3
3
|
|
|
4
4
|
definition.processor(function(service, app) {
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
service.validators.localId = (settings) => (value, context) => {
|
|
7
7
|
if (!value) return
|
|
8
8
|
//console.log("VALIDATE LOCAL ID", value, "=>", decodeUid(value), "BY", context.client)
|
package/model.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/session-service",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"name": "Michał Łaszczewski",
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
|
+
"type": "module",
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "0.
|
|
25
|
-
"@live-change/relations-plugin": "0.
|
|
25
|
+
"@live-change/framework": "0.8.0",
|
|
26
|
+
"@live-change/relations-plugin": "0.8.0",
|
|
26
27
|
"pluralize": "^8.0.0"
|
|
27
28
|
},
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "87010b19907140a326943f22cd538eafdc9c28f1"
|
|
29
30
|
}
|
package/sessionItem.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import definition from './definition.js'
|
|
2
|
+
import {
|
|
3
|
+
PropertyDefinition, ViewDefinition, IndexDefinition, ActionDefinition, EventDefinition
|
|
4
|
+
} from '@live-change/framework'
|
|
5
|
+
import { Session } from "./model.js"
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
import pluralize from 'pluralize'
|
|
7
8
|
|
|
8
9
|
definition.processor(function(service, app) {
|
|
9
10
|
|
package/sessionProperty.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import definition from './definition.js'
|
|
2
|
+
import App from '@live-change/framework'
|
|
3
3
|
const { PropertyDefinition, ViewDefinition, IndexDefinition, ActionDefinition, EventDefinition } = App
|
|
4
|
-
|
|
4
|
+
import { Session } from "./model.js"
|
|
5
5
|
|
|
6
6
|
definition.processor(function(service, app) {
|
|
7
7
|
|