@fluid-experimental/property-changeset 0.58.1001 → 0.58.2001
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/dist/changeset.d.ts.map +1 -1
- package/dist/changeset.js +1 -18
- package/dist/changeset.js.map +1 -1
- package/dist/changeset_operations/array.d.ts.map +1 -1
- package/dist/changeset_operations/array.js +0 -3
- package/dist/changeset_operations/array.js.map +1 -1
- package/dist/changeset_operations/arrayChangesetIterator.d.ts +4 -4
- package/dist/changeset_operations/arrayChangesetIterator.d.ts.map +1 -1
- package/dist/changeset_operations/arrayChangesetIterator.js +1 -5
- package/dist/changeset_operations/arrayChangesetIterator.js.map +1 -1
- package/dist/changeset_operations/changesetConflictTypes.d.ts.map +1 -1
- package/dist/changeset_operations/changesetConflictTypes.js +0 -1
- package/dist/changeset_operations/changesetConflictTypes.js.map +1 -1
- package/dist/changeset_operations/indexedCollection.d.ts.map +1 -1
- package/dist/changeset_operations/indexedCollection.js +1 -3
- package/dist/changeset_operations/indexedCollection.js.map +1 -1
- package/dist/changeset_operations/isEmptyChangeset.js.map +1 -1
- package/dist/changeset_operations/operationTypes.js +0 -1
- package/dist/changeset_operations/operationTypes.js.map +1 -1
- package/dist/helpers/typeidHelper.d.ts.map +1 -1
- package/dist/helpers/typeidHelper.js +4 -5
- package/dist/helpers/typeidHelper.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pathHelper.d.ts +2 -2
- package/dist/pathHelper.d.ts.map +1 -1
- package/dist/pathHelper.js +0 -2
- package/dist/pathHelper.js.map +1 -1
- package/dist/rebase.js +0 -1
- package/dist/rebase.js.map +1 -1
- package/dist/templateValidator.d.ts +3 -3
- package/dist/templateValidator.d.ts.map +1 -1
- package/dist/templateValidator.js +10 -12
- package/dist/templateValidator.js.map +1 -1
- package/dist/test/array.spec.js +56 -56
- package/dist/test/array.spec.js.map +1 -1
- package/dist/test/pathHelper.spec.js +14 -14
- package/dist/test/pathHelper.spec.js.map +1 -1
- package/dist/test/schemaValidator.js +2 -8
- package/dist/test/schemaValidator.js.map +1 -1
- package/dist/test/schemas/badBothPropertiesAndTypeid.js +3 -3
- package/dist/test/schemas/badBothPropertiesAndTypeid.js.map +1 -1
- package/dist/test/schemas/badInvalidSemverInTypeid.js +9 -9
- package/dist/test/schemas/badInvalidSemverInTypeid.js.map +1 -1
- package/dist/test/schemas/badMissingSemverInTypeid.js +9 -9
- package/dist/test/schemas/badMissingSemverInTypeid.js.map +1 -1
- package/dist/test/schemas/badNestedProperties.js +9 -9
- package/dist/test/schemas/badNestedProperties.js.map +1 -1
- package/dist/test/schemas/badPrimitiveTypeid.js +5 -5
- package/dist/test/schemas/badPrimitiveTypeid.js.map +1 -1
- package/dist/test/schemas/badVersionedTypeid.js +9 -9
- package/dist/test/schemas/badVersionedTypeid.js.map +1 -1
- package/dist/test/schemas/goodColorPalette.js +2 -2
- package/dist/test/schemas/goodColorPalette.js.map +1 -1
- package/dist/test/schemas/goodDraftAsVersion.js +2 -2
- package/dist/test/schemas/goodDraftAsVersion.js.map +1 -1
- package/dist/test/schemas/goodPointId.js +9 -9
- package/dist/test/schemas/goodPointId.js.map +1 -1
- package/dist/test/schemas/goodReferenceAndRegular.js +2 -2
- package/dist/test/schemas/goodReferenceAndRegular.js.map +1 -1
- package/dist/test/schemas/goodReservedTypes.js +4 -4
- package/dist/test/schemas/goodReservedTypes.js.map +1 -1
- package/dist/test/schemas/goodUIBorder.js +7 -7
- package/dist/test/schemas/goodUIBorder.js.map +1 -1
- package/dist/test/tsconfig.tsbuildinfo +23 -23
- package/dist/test/validator/templateValidator.spec.js +27 -27
- package/dist/test/validator/templateValidator.spec.js.map +1 -1
- package/dist/test/validator/typeidHelper.spec.js +2 -2
- package/dist/test/validator/typeidHelper.spec.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -4
- package/dist/utils.js.map +1 -1
- package/lib/changeset.js +1 -18
- package/lib/changeset.js.map +1 -1
- package/lib/changeset_operations/array.js +0 -3
- package/lib/changeset_operations/array.js.map +1 -1
- package/lib/changeset_operations/arrayChangesetIterator.js +1 -5
- package/lib/changeset_operations/arrayChangesetIterator.js.map +1 -1
- package/lib/changeset_operations/changesetConflictTypes.js +0 -1
- package/lib/changeset_operations/changesetConflictTypes.js.map +1 -1
- package/lib/changeset_operations/indexedCollection.js +1 -3
- package/lib/changeset_operations/indexedCollection.js.map +1 -1
- package/lib/changeset_operations/isEmptyChangeset.js.map +1 -1
- package/lib/changeset_operations/operationTypes.js +0 -1
- package/lib/changeset_operations/operationTypes.js.map +1 -1
- package/lib/helpers/typeidHelper.js +4 -5
- package/lib/helpers/typeidHelper.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/pathHelper.js +0 -2
- package/lib/pathHelper.js.map +1 -1
- package/lib/rebase.js +0 -1
- package/lib/rebase.js.map +1 -1
- package/lib/templateValidator.js +10 -12
- package/lib/templateValidator.js.map +1 -1
- package/lib/utils.js +2 -4
- package/lib/utils.js.map +1 -1
- package/package.json +8 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeidHelper.spec.js","sourceRoot":"","sources":["../../../src/test/validator/typeidHelper.spec.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,qCAAqC;AACrC,mCAAmC;AACnC,6BAA6B;AAC7B,yCAAyC;AACzC;;GAEG;;AAEH,+BAA8B;AAC9B,6DAA0D;AAE1D,CAAC;IACG,QAAQ,CAAC,eAAe,EAAE;QACtB,IAAI,GAAG,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC;QAEvE,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;YAChE,MAAM,MAAM,GAAG,2BAAY,CAAC,mBAAmB,EAAE,CAAC;YAClD,aAAM,CAAC,MAAM,CAAC,CAAC,EA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EAAE,GAAG,EAAE;gBAC9E,MAAM,MAAM,GAAG,2BAAY,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,cAAc,CAAC,CAAC;gBAEpF,aAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;YAC9B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,6FAA6F,EAAE,GAAG,EAAE;gBACnG,aAAM,CAAC,2BAAY,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;gBAC3F,aAAM,CAAC,2BAAY,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;YAChG,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint no-unused-expressions: 0 */\n/* eslint-disable no-unused-vars */\n/* eslint-disable no-undef */\n/* eslint-disable max-nested-callbacks */\n/**\n * @fileoverview In this file, we will test typeid_helper functions.\n */\n\nimport { expect } from \"chai\";\nimport { TypeIdHelper } from '../../helpers/typeidHelper';\n\n(function() {\n describe('Typeid helper', function() {\n var MSG = require('@fluid-experimental/property-common').constants.MSG;\n\n it('getPrimitiveTypeId() should return all primitive typeids', () => {\n const result = TypeIdHelper.getPrimitiveTypeIds();\n expect(result).to.have.members(['Float32', 'Float64', 'Int8', 'Uint8', 'Int16', 'Uint16', 'Int32',\n 'Uint32', 'Bool', 'String', 'Reference', 'Enum', 'Int64', 'Uint64'\n ]);\n });\n\n it('getReservedTypeId() should return all reserved typeids', () => {\n const result = TypeIdHelper.getReservedTypeIds();\n\n expect(result).to.have.members(['BaseProperty', 'ContainerProperty', 'NamedProperty', 'NodeProperty',\n 'NamedNodeProperty', 'RelationshipProperty'\n ]);\n });\n\n describe('nativeInheritsFrom() method', function() {\n it('should throw an error if the input is undefine', () => {\n expect(() => { TypeIdHelper.nativeInheritsFrom(undefined, 'BaseProperty'); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n // @ts-ignore\n expect(() => { TypeIdHelper.nativeInheritsFrom('NodeProperty'); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n // @ts-ignore\n expect(() => { TypeIdHelper.nativeInheritsFrom(); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n });\n\n it('should throw an error if the inputs are not native typeids', () => {\n expect(() => { TypeIdHelper.nativeInheritsFrom('template1', 'BaseProperty'); })\n .to.throw(MSG.TYPEID_NOT_NATIVE + 'template1');\n expect(() => { TypeIdHelper.nativeInheritsFrom('NodeProperty', 'template1'); })\n .to.throw(MSG.TYPEID_NOT_NATIVE + 'template1');\n });\n\n it('should recognize that all the native type inherit from BaseProperty', () => {\n expect(TypeIdHelper.nativeInheritsFrom('Int8', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint8', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int16', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint16', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Float32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Float64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Bool', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Reference', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Enum', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('String', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NodeProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('ContainerProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NamedProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Reference<NodeProperty>', 'Reference')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NodeProperty', 'Reference<NodeProperty>')).to.be.false;\n });\n\n it('should recognize that the Reference<NodeProperty> inherits from BaseProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('Reference<NodeProperty>', 'BaseProperty');\n\n expect(result).to.be.true;\n });\n\n it('should throw an error if in_typeid is enum<> ', () => {\n expect(() => {\n TypeIdHelper.nativeInheritsFrom('enum<NodeProperty>', 'BaseProperty');\n }).to.throw(MSG.TYPEID_NOT_NATIVE + 'enum<NodeProperty>');\n });\n\n it('should throw an error if base_typeid is enum<> ', () => {\n expect(() => {\n TypeIdHelper.nativeInheritsFrom('NodeProperty', 'enum<NodeProperty>');\n }).to.throw(MSG.TYPEID_NOT_NATIVE + 'enum<NodeProperty>');\n });\n\n it('should recognize that the Enum inherits from Int32', () => {\n const result = TypeIdHelper.nativeInheritsFrom('Enum', 'Int32');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NodeProperty inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NodeProperty', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedProperty inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedProperty', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the String inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('String', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedNodeProperty inherits from NamedProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'NamedProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedNodeProperty inherits from NodeProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'NodeProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the RelationshipProperty inherits from NodeProperty and NamedProperty', () => {\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'NodeProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'NamedProperty')).to.be.true;\n });\n });\n });\n})();\n"]}
|
|
1
|
+
{"version":3,"file":"typeidHelper.spec.js","sourceRoot":"","sources":["../../../src/test/validator/typeidHelper.spec.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,qCAAqC;AACrC,mCAAmC;AACnC,6BAA6B;AAC7B,yCAAyC;AACzC;;GAEG;;AAEH,+BAA8B;AAC9B,6DAA0D;AAE1D,CAAC;IACG,QAAQ,CAAC,eAAe,EAAE;QACtB,IAAI,GAAG,GAAG,OAAO,CAAC,qCAAqC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC;QAEvE,EAAE,CAAC,0DAA0D,EAAE,GAAG,EAAE;YAChE,MAAM,MAAM,GAAG,2BAAY,CAAC,mBAAmB,EAAE,CAAC;YAClD,aAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO;gBAC7F,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,M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YAC9B,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,6FAA6F,EAAE,GAAG,EAAE;gBACnG,aAAM,CAAC,2BAAY,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;gBAC3F,aAAM,CAAC,2BAAY,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;YAChG,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/* eslint no-unused-expressions: 0 */\n/* eslint-disable no-unused-vars */\n/* eslint-disable no-undef */\n/* eslint-disable max-nested-callbacks */\n/**\n * @fileoverview In this file, we will test typeid_helper functions.\n */\n\nimport { expect } from \"chai\";\nimport { TypeIdHelper } from '../../helpers/typeidHelper';\n\n(function() {\n describe('Typeid helper', function() {\n var MSG = require('@fluid-experimental/property-common').constants.MSG;\n\n it('getPrimitiveTypeId() should return all primitive typeids', () => {\n const result = TypeIdHelper.getPrimitiveTypeIds();\n expect(result).to.have.members(['Float32', 'Float64', 'Int8', 'Uint8', 'Int16', 'Uint16', 'Int32',\n 'Uint32', 'Bool', 'String', 'Reference', 'Enum', 'Int64', 'Uint64',\n ]);\n });\n\n it('getReservedTypeId() should return all reserved typeids', () => {\n const result = TypeIdHelper.getReservedTypeIds();\n\n expect(result).to.have.members(['BaseProperty', 'ContainerProperty', 'NamedProperty', 'NodeProperty',\n 'NamedNodeProperty', 'RelationshipProperty',\n ]);\n });\n\n describe('nativeInheritsFrom() method', function() {\n it('should throw an error if the input is undefine', () => {\n expect(() => { TypeIdHelper.nativeInheritsFrom(undefined, 'BaseProperty'); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n // @ts-ignore\n expect(() => { TypeIdHelper.nativeInheritsFrom('NodeProperty'); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n // @ts-ignore\n expect(() => { TypeIdHelper.nativeInheritsFrom(); }).to.throw(MSG.TYPEID_NOT_DEFINED);\n });\n\n it('should throw an error if the inputs are not native typeids', () => {\n expect(() => { TypeIdHelper.nativeInheritsFrom('template1', 'BaseProperty'); })\n .to.throw(MSG.TYPEID_NOT_NATIVE + 'template1');\n expect(() => { TypeIdHelper.nativeInheritsFrom('NodeProperty', 'template1'); })\n .to.throw(MSG.TYPEID_NOT_NATIVE + 'template1');\n });\n\n it('should recognize that all the native type inherit from BaseProperty', () => {\n expect(TypeIdHelper.nativeInheritsFrom('Int8', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint8', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int16', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint16', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Float32', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Int64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Uint64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Float64', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Bool', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Reference', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Enum', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('String', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NodeProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('ContainerProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NamedProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'BaseProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('Reference<NodeProperty>', 'Reference')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('NodeProperty', 'Reference<NodeProperty>')).to.be.false;\n });\n\n it('should recognize that the Reference<NodeProperty> inherits from BaseProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('Reference<NodeProperty>', 'BaseProperty');\n\n expect(result).to.be.true;\n });\n\n it('should throw an error if in_typeid is enum<> ', () => {\n expect(() => {\n TypeIdHelper.nativeInheritsFrom('enum<NodeProperty>', 'BaseProperty');\n }).to.throw(MSG.TYPEID_NOT_NATIVE + 'enum<NodeProperty>');\n });\n\n it('should throw an error if base_typeid is enum<> ', () => {\n expect(() => {\n TypeIdHelper.nativeInheritsFrom('NodeProperty', 'enum<NodeProperty>');\n }).to.throw(MSG.TYPEID_NOT_NATIVE + 'enum<NodeProperty>');\n });\n\n it('should recognize that the Enum inherits from Int32', () => {\n const result = TypeIdHelper.nativeInheritsFrom('Enum', 'Int32');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NodeProperty inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NodeProperty', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedProperty inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedProperty', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the String inherits from ContainerProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('String', 'ContainerProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedNodeProperty inherits from NamedProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'NamedProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the NamedNodeProperty inherits from NodeProperty', () => {\n const result = TypeIdHelper.nativeInheritsFrom('NamedNodeProperty', 'NodeProperty');\n\n expect(result).to.be.true;\n });\n\n it('should recognize that the RelationshipProperty inherits from NodeProperty and NamedProperty', () => {\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'NodeProperty')).to.be.true;\n expect(TypeIdHelper.nativeInheritsFrom('RelationshipProperty', 'NamedProperty')).to.be.true;\n });\n });\n });\n})();\n"]}
|
package/dist/utils.d.ts
CHANGED
|
@@ -144,7 +144,7 @@ export declare namespace Utils {
|
|
|
144
144
|
* @param in_newNestedChangeset The new content
|
|
145
145
|
*/
|
|
146
146
|
replaceNestedChangeSet(in_newNestedChangeset: SerializedChangeSet): void;
|
|
147
|
-
|
|
147
|
+
/**
|
|
148
148
|
* Get the ChangeSet of the parent that contains the currently visited node.
|
|
149
149
|
*
|
|
150
150
|
* @returns The parent ChangeSet
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4B,aAAa,EAA+B,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAc,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAMA,OAAO,EAA4B,aAAa,EAA+B,MAAM,OAAO,CAAC;AAW7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,wBAAwB,CAAC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;KAAsE,QAiJnL;IAED,KAAK,SAAS,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC;IAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,MAAM,UAAU,2BAA2B,CAAC,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,SAAS,GAAG,mBAAmB,CAuMvH;IAED;;;;;;;OAOG;IACH,MAAM,UAAU,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,QAAQ,CAuCnE;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,MAAM,UAAU,yBAAyB,CAAC,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,mBAAmB,CAyBpH;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,UAAU,yBAAyB,CAAC,YAAY,EAAE,mBAAmB,EAAE,UAAU,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAAE,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAiBlN;;CACJ"}
|
package/dist/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.Utils = void 0;
|
|
|
8
8
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
9
9
|
* Licensed under the MIT License.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
// @ts-ignore
|
|
12
12
|
const property_common_1 = require("@fluid-experimental/property-common");
|
|
13
13
|
const async_1 = require("async");
|
|
14
14
|
const fastest_json_copy_1 = require("fastest-json-copy");
|
|
@@ -359,7 +359,6 @@ var Utils;
|
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
;
|
|
363
362
|
/**
|
|
364
363
|
* Copies a change set into an object that is meant to be a placeholder for the next
|
|
365
364
|
* property in the tree.
|
|
@@ -812,7 +811,7 @@ var Utils;
|
|
|
812
811
|
console.warn("replaceNestedChangeSet: not implemented. type: ", this.getPropertyContainerType());
|
|
813
812
|
}
|
|
814
813
|
}
|
|
815
|
-
|
|
814
|
+
/**
|
|
816
815
|
* Get the ChangeSet of the parent that contains the currently visited node.
|
|
817
816
|
*
|
|
818
817
|
* @returns The parent ChangeSet
|
|
@@ -1829,5 +1828,4 @@ var Utils;
|
|
|
1829
1828
|
}
|
|
1830
1829
|
Utils.extractPathsFromChangeSet = extractPathsFromChangeSet;
|
|
1831
1830
|
})(Utils = exports.Utils || (exports.Utils = {}));
|
|
1832
|
-
;
|
|
1833
1831
|
//# sourceMappingURL=utils.js.map
|