JSPM

@wessberg/globalobject

1.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q34529F
  • License MIT

A package that returns a reference to the global object, depending on the current execution environment.

Package Exports

  • @wessberg/globalobject

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wessberg/globalobject) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GlobalObject [![NPM version][npm-image]][npm-url]

Dev Dependencies

deps

License-mit

A package that shims and returns a reference to the global object, depending on the current execution environment.

Installation

Simply do: npm install @wessberg/globalobject.

Usage - in code

import {GlobalObject, GlobalObjectIdentifier} from "@wessberg/globalobect";
// GlobalObject refers to 'self', 'global' or 'window'.
// GlobalObjectIdentifier is the name of the identifier.

Changelog

1.0.7 (2017-07-19)

1.0.6 (2017-07-19)

1.0.5 (2017-05-31)

  • 1.0.5 (73a0d6b)
  • Added a new exported property: 'shimGlobalObjectStringified' which is a stringified shim that can be (396aed5)

1.0.4 (2017-05-31)

  • 1.0.4 (0098610)
  • Added a new function that this module exports: . Calling this from anywhere will shim the window, se (29ae227)

1.0.3 (2017-05-18)

  • 1.0.3 (fd0ef1a)
  • Other global objects will now be shimmed so that window, self, root or global always refers to the a (da5a2c9)

1.0.2 (2017-05-06)

  • 1.0.2 (bd0d25a)
  • Added a which is the string name of the global object. (65b1dc0)

1.0.1 (2017-04-24)

1.0.6 (2017-07-19)

    • Migrated to common ts-config configuration. (7750b56)
  • 1.0.6 (a90e4fc)

1.0.5 (2017-05-31)

  • 1.0.5 (73a0d6b)
  • Added a new exported property: 'shimGlobalObjectStringified' which is a stringified shim that can be (396aed5)

1.0.4 (2017-05-31)

  • 1.0.4 (0098610)
  • Added a new function that this module exports: . Calling this from anywhere will shim the window, se (29ae227)

1.0.3 (2017-05-18)

  • 1.0.3 (fd0ef1a)
  • Other global objects will now be shimmed so that window, self, root or global always refers to the a (da5a2c9)

1.0.2 (2017-05-06)

  • 1.0.2 (bd0d25a)
  • Added a which is the string name of the global object. (65b1dc0)

1.0.1 (2017-04-24)