pulumi/sdk/nodejs/runtime
Luke Hoban f7397bb798
[sdk/nodejs] Skip re-registrations of same package+version (#6387)
It is possible for the same version of the same provider SDK to be loaded multiple times in Node.js.  In this case, we might legitimately get mutliple registrations of the same resource.  It should not matter which we use, so we can just skip re-registering.  De-serialized resources will always be instances of classes from the first registered package.

Example layout this addresses.  Registrations of resources in `package3` at the same verrsion.

`node_modules`
  `@pulumi/pulumi`
  `package1`
    `node_modules`
      `package3`
  `package2`
    `node_modules`
      `package3`

Fixes #6258.
2021-02-20 10:06:32 +11:00
..
closure Allow `serializeFunction` to capture secrets (#6013) 2020-12-31 09:37:25 +11:00
asyncIterableUtil.ts Mark internal APIs `@internal` to filter from API docs (#3809) 2020-01-26 09:06:35 -08:00
config.ts Always read and write nodejs runtime options from/to the environment (#6076) 2021-01-26 14:59:32 -08:00
debuggable.ts support inline programs for nodejs automation api 2020-10-08 12:19:01 -07:00
index.ts support inline programs for nodejs automation api 2020-10-08 12:19:01 -07:00
invoke.ts Enable resource reference feature by default (#5905) 2020-12-10 11:21:05 -07:00
mocks.ts fix: typo to get the outputs while registering them in a mock (#6040) 2021-01-12 10:49:39 -08:00
resource.ts Enable resource reference feature by default (#5905) 2020-12-10 11:21:05 -07:00
rpc.ts [sdk/nodejs] Skip re-registrations of same package+version (#6387) 2021-02-20 10:06:32 +11:00
settings.ts Always read and write nodejs runtime options from/to the environment (#6076) 2021-01-26 14:59:32 -08:00
stack.ts Update PulumiStackType comments in dotnet and nodejs (#6028) 2020-12-30 23:02:18 +00:00