Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
- Updated build
  • Loading branch information
novacbn committed Jan 23, 2020
1 parent 072a5e3 commit ba1e992
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/svelte-commons.umd.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions lib/util/shared/context.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/util/shared/context.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-commons",
"version": "0.0.1",
"version": "0.0.2",
"description": "Provides common utilities for working with Svelte",
"main": "lib/index.js",
"typings": "types/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/util/shared/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ export function set_current_href(href: string): void {
}

/**
* Sets the current URL origin of the context, `location.origin` (Browser) / `CONTEXT_CURRENT_ORIGIN` (Server)
* NOTE: `location.origin` is actually read-only in Browsers
* Sets the current URL origin of the context, `CONTEXT_CURRENT_ORIGIN` (Server)
*
* NOTE: Will throw an exception when ran on Browser
*
* @param origin
*/
export function set_current_origin(origin: string): void {
Expand Down
6 changes: 4 additions & 2 deletions types/util/shared/context.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ export declare function get_current_origin(): string;
*/
export declare function set_current_href(href: string): void;
/**
* Sets the current URL origin of the context, `location.origin` (Browser) / `CONTEXT_CURRENT_ORIGIN` (Server)
* NOTE: `location.origin` is actually read-only in Browsers
* Sets the current URL origin of the context, `CONTEXT_CURRENT_ORIGIN` (Server)
*
* NOTE: Will throw an exception when ran on Browser
*
* @param origin
*/
export declare function set_current_origin(origin: string): void;

0 comments on commit ba1e992

Please sign in to comment.