@fluid-experimental/property-common 2.0.0-dev.5.3.2.178189 → 2.0.0-dev.6.4.0.191258

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/property-common",
3
- "version": "2.0.0-dev.5.3.2.178189",
3
+ "version": "2.0.0-dev.6.4.0.191258",
4
4
  "description": "common functions used in properties",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "main": "dist/index.js",
14
14
  "module": "lib/index.js",
15
15
  "types": "dist/index.d.ts",
16
- "nyc": {
16
+ "c8": {
17
17
  "all": true,
18
18
  "cache-dir": "nyc/.cache",
19
19
  "exclude": [
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "ajv": "7.1.1",
38
38
  "async": "^3.2.2",
39
- "base64-js": "1.3.0",
39
+ "base64-js": "^1.5.1",
40
40
  "events": "^3.1.0",
41
41
  "fastest-json-copy": "^1.0.1",
42
42
  "lodash": "^4.17.21",
@@ -45,19 +45,19 @@
45
45
  "traverse": "0.6.6"
46
46
  },
47
47
  "devDependencies": {
48
- "@fluidframework/build-common": "^1.2.0",
49
- "@fluidframework/build-tools": "^0.21.0",
50
- "@fluidframework/eslint-config-fluid": "^2.0.0",
51
- "@fluidframework/mocha-test-setup": "2.0.0-dev.5.3.2.178189",
48
+ "@fluidframework/build-common": "^2.0.0",
49
+ "@fluidframework/build-tools": "^0.22.0",
50
+ "@fluidframework/eslint-config-fluid": "^2.1.0",
51
+ "@fluidframework/mocha-test-setup": "2.0.0-dev.6.4.0.191258",
52
52
  "@microsoft/api-extractor": "^7.34.4",
53
53
  "@types/chai": "^4.0.0",
54
54
  "@types/debug": "^4.1.5",
55
55
  "@types/lodash": "^4.14.118",
56
56
  "@types/mocha": "^9.1.1",
57
- "@types/node": "^14.18.38",
57
+ "@types/node": "^16.18.38",
58
58
  "@types/semver": "^7.5.0",
59
+ "c8": "^7.7.1",
59
60
  "chai": "^4.2.0",
60
- "concurrently": "^7.6.0",
61
61
  "copyfiles": "^2.4.1",
62
62
  "cross-env": "^7.0.3",
63
63
  "eslint": "~8.6.0",
@@ -65,8 +65,7 @@
65
65
  "mocha-json-output-reporter": "^2.0.1",
66
66
  "mocha-multi-reporters": "^1.5.1",
67
67
  "moment": "^2.21.0",
68
- "nock": "^10.0.1",
69
- "nyc": "^15.1.0",
68
+ "nock": "^13.3.3",
70
69
  "prettier": "~2.6.2",
71
70
  "rimraf": "^4.4.0",
72
71
  "sinon": "^7.4.2",
@@ -82,7 +81,7 @@
82
81
  "build:compile": "fluid-build . --task compile",
83
82
  "build:esnext": "tsc --project ./tsconfig.esnext.json",
84
83
  "build:test": "tsc --project ./src/test/tsconfig.json",
85
- "clean": "rimraf dist lib *.tsbuildinfo *.build.log",
84
+ "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' 'nyc'",
86
85
  "eslint": "eslint --format stylish src",
87
86
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
88
87
  "format": "npm run prettier:fix",
@@ -91,9 +90,8 @@
91
90
  "prettier": "prettier --check . --ignore-path ../../../../.prettierignore",
92
91
  "prettier:fix": "prettier --write . --ignore-path ../../../../.prettierignore",
93
92
  "test": "npm run test:mocha",
94
- "test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
95
- "test:mocha": "mocha --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
96
- "test:mocha:multireport": "cross-env FLUID_TEST_MULTIREPORT=1 npm run test:mocha",
93
+ "test:coverage": "c8 npm test",
94
+ "test:mocha": "mocha --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup",
97
95
  "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
98
96
  "tsc": "tsc"
99
97
  }
@@ -1,5 +1,25 @@
1
1
  # @fluid-internal/platform-dependent
2
2
 
3
+ ## 2.0.0-internal.6.3.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.6.2.0
8
+
9
+ Dependency updates only.
10
+
11
+ ## 2.0.0-internal.6.1.0
12
+
13
+ Dependency updates only.
14
+
15
+ ## 2.0.0-internal.6.0.0
16
+
17
+ Dependency updates only.
18
+
19
+ ## 2.0.0-internal.5.4.0
20
+
21
+ Dependency updates only.
22
+
3
23
  ## 2.0.0-internal.5.3.0
4
24
 
5
25
  Dependency updates only.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-internal/platform-dependent",
3
- "version": "2.0.0-dev.5.3.2.178189",
3
+ "version": "2.0.0-dev.6.4.0.191258",
4
4
  "private": true,
5
5
  "description": "Helper package that separates code for browser and server.",
6
6
  "homepage": "https://fluidframework.com",
package/src/constants.ts CHANGED
@@ -40,6 +40,7 @@ const SchemaValidatorError = {
40
40
  * Your property template should include a typeid attribute.
41
41
  *
42
42
  * @example
43
+ *
43
44
  *```json
44
45
  * {
45
46
  * "typeid": "my.example:point2d-1.0.0",
@@ -58,7 +59,9 @@ const SchemaValidatorError = {
58
59
  *
59
60
  * Typeid should contain a template version number.
60
61
  *
61
- * @example “typeid: my.example:point2d-1.0.0”
62
+ * @example
63
+ *
64
+ * “typeid: my.example:point2d-1.0.0”
62
65
  */
63
66
  MISSING_VERSION: "SV-005: Missing template version in 'typeid' attribute: ",
64
67
 
@@ -413,6 +416,7 @@ const PropertyError = {
413
416
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
414
417
  *
415
418
  * @example
419
+ *
416
420
  * ```typescript
417
421
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
418
422
  * ```
@@ -870,12 +874,14 @@ const PropertyError = {
870
874
  * The token DEREFERENCE_TOKEN should only be used with .get when the in_ids passed to .get is an array.
871
875
  * the DEREFERENCE_TOKEN should follow a path to a reference.
872
876
  *
873
- * @example Valid:
877
+ * @example Valid
878
+ *
874
879
  * ```typescript
875
880
  * myProp.get(['myReference', TOKENS.DEREFERENCE_TOKEN])
876
881
  * ```
877
882
  *
878
- * @example Not valid:
883
+ * @example Not valid
884
+ *
879
885
  * ```typescript
880
886
  * myProp.get('myReference').get(TOKENS.DEREFERENCE_TOKEN)
881
887
  * ```
@@ -1072,6 +1078,7 @@ const PropertyFactoryError = {
1072
1078
  * When using ‘inherits’ in your property template, it must be a string or an array.
1073
1079
  *
1074
1080
  * @example
1081
+ *
1075
1082
  * ```json
1076
1083
  * {
1077
1084
  * typeid:'my.example:point2d-1.0.0',
@@ -1267,6 +1274,7 @@ const PropertyFactoryError = {
1267
1274
  * You need a ‘typeid’ field in your template schema.
1268
1275
  *
1269
1276
  * @example
1277
+ *
1270
1278
  * ```json
1271
1279
  * {
1272
1280
  * ‘typeid’: 'autodesk.test:set.set-1.0.0',
@@ -1296,6 +1304,7 @@ const PropertyFactoryError = {
1296
1304
  * Each entry in your enum property array must have an id.
1297
1305
  *
1298
1306
  * @example
1307
+ *
1299
1308
  * ```json
1300
1309
  * {
1301
1310
  * "typeid": "Adsk.Core:Units.Metric-1.0.0",
@@ -1317,6 +1326,7 @@ const PropertyFactoryError = {
1317
1326
  * Each entry in your enum property must have a value that is a number.
1318
1327
  *
1319
1328
  * @example
1329
+ *
1320
1330
  * ```json
1321
1331
  * {
1322
1332
  * "typeid": "Adsk.Core:Units.Metric-1.0.0",
@@ -118,8 +118,8 @@ export class Collection<T> {
118
118
  }
119
119
 
120
120
  /**
121
- * Return the last item in the collection, null if empty
122
- * @returns - last item, or undefined if empty
121
+ * Return the last item in the collection, undefined if empty
122
+ * @returns The last item, or undefined if empty
123
123
  * */
124
124
  getLastItem(): T | undefined {
125
125
  const index = _.last(this._order);
package/src/guidUtils.ts CHANGED
@@ -105,7 +105,7 @@ const isBase64 = (GUID: string): boolean => GUID.length === 22;
105
105
  *
106
106
  * @param a - unsigned int32 value
107
107
  * @param b - unsigned int32 value
108
- * @returns - result of unsigned integer multiplication
108
+ * @returns The result of the unsigned integer multiplication.
109
109
  */
110
110
  function multiply_uint32(a: number, b: number): number {
111
111
  let n = a;