Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/tslib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e1aae12c74c57200f72a7f9cfb53321e0c43b616
Choose a base ref
...
head repository: microsoft/tslib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 19d1e0a336c8826551956310ecc7dd9fa06511ad
Choose a head ref
  • 16 commits
  • 7 files changed
  • 11 contributors

Commits on Jun 19, 2019

  1. chore: use https for website

    SimenB authored Jun 19, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    02ef255 View commit details

Commits on Jun 20, 2019

  1. Merge pull request #68 from SimenB/patch-1

    chore: use https for website
    weswigham authored Jun 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    293765b View commit details

Commits on Jul 23, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0aa4c2a View commit details

Commits on Jul 25, 2019

  1. Copy the full SHA
    0afc428 View commit details

Commits on Aug 6, 2019

  1. Copy the full SHA
    18b0b94 View commit details
  2. Copy the full SHA
    493138d View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b9ff14b View commit details

Commits on Aug 7, 2019

  1. Update README.md

    iliyaZelenko authored Aug 7, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0d39ba8 View commit details
  2. Merge pull request #73 from iliyaZelenko/patch-1

    Update README.md
    RyanCavanaugh authored Aug 7, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ec58992 View commit details

Commits on Sep 12, 2019

  1. Copy the full SHA
    5c72ae8 View commit details

Commits on Dec 27, 2019

  1. Merge pull request #77 from bloomberg/es-private-fields

    add helpers for private-named instance fields
    DanielRosenwasser authored Dec 27, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    82216bc View commit details

Commits on Jan 3, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    ExE-Boss ExE Boss
    Copy the full SHA
    2b541e6 View commit details
  2. Merge pull request #82 from EB-Forks/feat/typed-private-fields

    feat: Add type information to private field helper functions
    DanielRosenwasser authored Jan 3, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3cf8ae0 View commit details

Commits on Feb 20, 2020

  1. Copy the full SHA
    16f4f7b View commit details
  2. Add publish action

    weswigham committed Feb 20, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    weswigham Wesley Wigham
    Copy the full SHA
    9293159 View commit details
  3. Remove unneeded dependency

    weswigham committed Feb 20, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    weswigham Wesley Wigham
    Copy the full SHA
    19d1e0a View commit details
Showing with 81 additions and 11 deletions.
  1. +19 −0 .github/workflows/publish.yaml
  2. +11 −1 README.md
  3. +1 −1 bower.json
  4. +4 −3 package.json
  5. +2 −0 tslib.d.ts
  6. +20 −3 tslib.es6.js
  7. +24 −3 tslib.js
19 changes: 19 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to NPM

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -44,6 +44,16 @@ npm install --save tslib
npm install --save tslib@1.6.1
```

## yarn

```sh
# TypeScript 2.3.3 or later
yarn add tslib

# TypeScript 2.3.2 or earlier
yarn add tslib@1.6.1
```

## bower

```sh
@@ -108,7 +118,7 @@ For JSPM users:
"importHelpers": true,
"baseUrl": "./",
"paths": {
"tslib" : ["jspm_packages/npm/tslib@1.10.0/tslib.d.ts"]
"tslib" : ["jspm_packages/npm/tslib@1.11.0/tslib.d.ts"]
}
}
}
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"Microsoft Corp."
],
"homepage": "http://typescriptlang.org/",
"version": "1.10.0",
"version": "1.11.0",
"license": "Apache-2.0",
"description": "Runtime library for TypeScript helper functions",
"keywords": [
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "tslib",
"author": "Microsoft Corp.",
"homepage": "http://typescriptlang.org/",
"version": "1.10.0",
"homepage": "https://www.typescriptlang.org/",
"version": "1.11.0",
"license": "Apache-2.0",
"description": "Runtime library for TypeScript helper functions",
"keywords": [
@@ -24,5 +24,6 @@
"main": "tslib.js",
"module": "tslib.es6.js",
"jsnext:main": "tslib.es6.js",
"typings": "tslib.d.ts"
"typings": "tslib.d.ts",
"sideEffects": false
}
2 changes: 2 additions & 0 deletions tslib.d.ts
Original file line number Diff line number Diff line change
@@ -32,3 +32,5 @@ export declare function __asyncValues(o: any): any;
export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray;
export declare function __importStar<T>(mod: T): T;
export declare function __importDefault<T>(mod: T): T | { default: T };
export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, privateMap: WeakMap<T, V>): V;
export declare function __classPrivateFieldSet<T extends object, V>(receiver: T, privateMap: WeakMap<T, V>, value: V): V;
23 changes: 20 additions & 3 deletions tslib.es6.js
Original file line number Diff line number Diff line change
@@ -66,10 +66,11 @@ export function __metadata(metadataKey, metadataValue) {
}

export function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
@@ -107,14 +108,15 @@ export function __exportStar(m, exports) {
}

export function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
return {
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}

export function __read(o, n) {
@@ -194,3 +196,18 @@ export function __importStar(mod) {
export function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}

export function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}

export function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
27 changes: 24 additions & 3 deletions tslib.js
Original file line number Diff line number Diff line change
@@ -33,6 +33,8 @@ var __asyncValues;
var __makeTemplateObject;
var __importStar;
var __importDefault;
var __classPrivateFieldGet;
var __classPrivateFieldSet;
(function (factory) {
var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {};
if (typeof define === "function" && define.amd) {
@@ -103,10 +105,11 @@ var __importDefault;
};

__awaiter = function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
@@ -144,14 +147,15 @@ var __importDefault;
};

__values = function (o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
return {
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};

__read = function (o, n) {
@@ -232,6 +236,21 @@ var __importDefault;
return (mod && mod.__esModule) ? mod : { "default": mod };
};

__classPrivateFieldGet = function (receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
};

__classPrivateFieldSet = function (receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}

exporter("__extends", __extends);
exporter("__assign", __assign);
exporter("__rest", __rest);
@@ -252,4 +271,6 @@ var __importDefault;
exporter("__makeTemplateObject", __makeTemplateObject);
exporter("__importStar", __importStar);
exporter("__importDefault", __importDefault);
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
});