@esri/arcgis-rest-basemap-sessions 1.0.0
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/README.md +60 -0
- package/dist/bundled/basemap-sessions.esm.js +362 -0
- package/dist/bundled/basemap-sessions.esm.js.map +1 -0
- package/dist/bundled/basemap-sessions.esm.min.js +12 -0
- package/dist/bundled/basemap-sessions.esm.min.js.map +1 -0
- package/dist/bundled/basemap-sessions.umd.js +376 -0
- package/dist/bundled/basemap-sessions.umd.js.map +1 -0
- package/dist/bundled/basemap-sessions.umd.min.js +12 -0
- package/dist/bundled/basemap-sessions.umd.min.js.map +1 -0
- package/dist/cjs/BaseSession.js +312 -0
- package/dist/cjs/BaseSession.js.map +1 -0
- package/dist/cjs/BasemapStyleSession.js +30 -0
- package/dist/cjs/BasemapStyleSession.js.map +1 -0
- package/dist/cjs/StaticBasemapTilesSession.js +30 -0
- package/dist/cjs/StaticBasemapTilesSession.js.map +1 -0
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/types/StyleFamily.js +3 -0
- package/dist/cjs/types/StyleFamily.js.map +1 -0
- package/dist/cjs/utils/defaults.js +8 -0
- package/dist/cjs/utils/defaults.js.map +1 -0
- package/dist/cjs/utils/detemineSafetyMargin.js +15 -0
- package/dist/cjs/utils/detemineSafetyMargin.js.map +1 -0
- package/dist/cjs/utils/startNewSession.js +14 -0
- package/dist/cjs/utils/startNewSession.js.map +1 -0
- package/dist/cjs/utils/writable.js +3 -0
- package/dist/cjs/utils/writable.js.map +1 -0
- package/dist/esm/BaseSession.d.ts +270 -0
- package/dist/esm/BaseSession.js +308 -0
- package/dist/esm/BaseSession.js.map +1 -0
- package/dist/esm/BasemapStyleSession.d.ts +20 -0
- package/dist/esm/BasemapStyleSession.js +26 -0
- package/dist/esm/BasemapStyleSession.js.map +1 -0
- package/dist/esm/StaticBasemapTilesSession.d.ts +20 -0
- package/dist/esm/StaticBasemapTilesSession.js +26 -0
- package/dist/esm/StaticBasemapTilesSession.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/types/StyleFamily.d.ts +4 -0
- package/dist/esm/types/StyleFamily.js +2 -0
- package/dist/esm/types/StyleFamily.js.map +1 -0
- package/dist/esm/utils/defaults.d.ts +4 -0
- package/dist/esm/utils/defaults.js +5 -0
- package/dist/esm/utils/defaults.js.map +1 -0
- package/dist/esm/utils/detemineSafetyMargin.d.ts +1 -0
- package/dist/esm/utils/detemineSafetyMargin.js +11 -0
- package/dist/esm/utils/detemineSafetyMargin.js.map +1 -0
- package/dist/esm/utils/startNewSession.d.ts +15 -0
- package/dist/esm/utils/startNewSession.js +10 -0
- package/dist/esm/utils/startNewSession.js.map +1 -0
- package/dist/esm/utils/writable.d.ts +8 -0
- package/dist/esm/utils/writable.js +2 -0
- package/dist/esm/utils/writable.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSession } from "./BaseSession.js";
|
|
2
|
+
import { DEFAULT_START_BASEMAP_STYLE_SESSION_URL } from "./utils/defaults.js";
|
|
3
|
+
/**
|
|
4
|
+
* `BasemapStyleSession` is a class that extends {@linkcode BaseSession} to manage sessions
|
|
5
|
+
* for basemap styles. It provides methods to {@linkcode BasemapStyleSession.start} a new session
|
|
6
|
+
* which should be used instead of constructing a new instance directly.
|
|
7
|
+
*
|
|
8
|
+
* @class BasemapStyleSession
|
|
9
|
+
* @extends BaseSession
|
|
10
|
+
*/
|
|
11
|
+
export class BasemapStyleSession extends BaseSession {
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of `BasemapStyleSession`. Constructing `BasemapStyleSession` directly is discouraged.
|
|
14
|
+
* Instead, use the static method {@linkcode BasemapStyleSession.start} to start a new session.
|
|
15
|
+
*/
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Starts a new basemap style session.
|
|
21
|
+
*/
|
|
22
|
+
static async start(params) {
|
|
23
|
+
return BaseSession.startSession(Object.assign(Object.assign({}, params), { startSessionUrl: (params === null || params === void 0 ? void 0 : params.startSessionUrl) || DEFAULT_START_BASEMAP_STYLE_SESSION_URL }), BasemapStyleSession);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=BasemapStyleSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BasemapStyleSession.js","sourceRoot":"","sources":["../../src/BasemapStyleSession.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uCAAuC,EAAE,MAAM,qBAAqB,CAAC;AAE9E;;;;;;;GAOG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;OAGG;IACH,YAAY,MAA6B;QACvC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAA2B;QAC5C,OAAO,WAAW,CAAC,YAAY,iCAExB,MAAM,KACT,eAAe,EACb,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,KAAI,uCAAuC,KAEtE,mBAEwB,CACzB,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n BaseSession,\n IBasemapSessionParams,\n IStartSessionParams\n} from \"./BaseSession.js\";\nimport { DEFAULT_START_BASEMAP_STYLE_SESSION_URL } from \"./utils/defaults.js\";\n\n/**\n * `BasemapStyleSession` is a class that extends {@linkcode BaseSession} to manage sessions\n * for basemap styles. It provides methods to {@linkcode BasemapStyleSession.start} a new session\n * which should be used instead of constructing a new instance directly.\n *\n * @class BasemapStyleSession\n * @extends BaseSession\n */\nexport class BasemapStyleSession extends BaseSession {\n /**\n * Creates an instance of `BasemapStyleSession`. Constructing `BasemapStyleSession` directly is discouraged.\n * Instead, use the static method {@linkcode BasemapStyleSession.start} to start a new session.\n */\n constructor(params: IBasemapSessionParams) {\n super(params);\n }\n\n /**\n * Starts a new basemap style session.\n */\n static async start(params: IStartSessionParams) {\n return BaseSession.startSession<BasemapStyleSession>(\n {\n ...params,\n startSessionUrl:\n params?.startSessionUrl || DEFAULT_START_BASEMAP_STYLE_SESSION_URL\n },\n BasemapStyleSession as new (\n params: IBasemapSessionParams\n ) => BasemapStyleSession\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseSession, IBasemapSessionParams, IStartSessionParams } from "./BaseSession.js";
|
|
2
|
+
/**
|
|
3
|
+
* `StaticBasemapTilesSession` is a class that extends {@linkcode BaseSession} to manage sessions
|
|
4
|
+
* for static basemap tiles. It provides methods to {@linkcode StaticBasemapTilesSession.start} a new session
|
|
5
|
+
* which should be used instead of constructing a new instance directly.
|
|
6
|
+
*
|
|
7
|
+
* @class StaticBasemapTilesSession
|
|
8
|
+
* @extends BaseSession
|
|
9
|
+
*/
|
|
10
|
+
export declare class StaticBasemapTilesSession extends BaseSession {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of `StaticBasemapTilesSession`. Constructing `StaticBasemapTilesSession` directly is discouraged.
|
|
13
|
+
* Instead, use the static method {@linkcode StaticBasemapTilesSession.start} to start a new session.`
|
|
14
|
+
*/
|
|
15
|
+
constructor(params: IBasemapSessionParams);
|
|
16
|
+
/**
|
|
17
|
+
* Starts a new static basemap tiles session.
|
|
18
|
+
*/
|
|
19
|
+
static start(params: IStartSessionParams): Promise<StaticBasemapTilesSession>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseSession } from "./BaseSession.js";
|
|
2
|
+
import { DEFAULT_START_STATIC_BASEMAP_SESSION_URL } from "./utils/defaults.js";
|
|
3
|
+
/**
|
|
4
|
+
* `StaticBasemapTilesSession` is a class that extends {@linkcode BaseSession} to manage sessions
|
|
5
|
+
* for static basemap tiles. It provides methods to {@linkcode StaticBasemapTilesSession.start} a new session
|
|
6
|
+
* which should be used instead of constructing a new instance directly.
|
|
7
|
+
*
|
|
8
|
+
* @class StaticBasemapTilesSession
|
|
9
|
+
* @extends BaseSession
|
|
10
|
+
*/
|
|
11
|
+
export class StaticBasemapTilesSession extends BaseSession {
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of `StaticBasemapTilesSession`. Constructing `StaticBasemapTilesSession` directly is discouraged.
|
|
14
|
+
* Instead, use the static method {@linkcode StaticBasemapTilesSession.start} to start a new session.`
|
|
15
|
+
*/
|
|
16
|
+
constructor(params) {
|
|
17
|
+
super(params);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Starts a new static basemap tiles session.
|
|
21
|
+
*/
|
|
22
|
+
static async start(params) {
|
|
23
|
+
return BaseSession.startSession(Object.assign(Object.assign({}, params), { startSessionUrl: (params === null || params === void 0 ? void 0 : params.startSessionUrl) || DEFAULT_START_STATIC_BASEMAP_SESSION_URL }), StaticBasemapTilesSession);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=StaticBasemapTilesSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticBasemapTilesSession.js","sourceRoot":"","sources":["../../src/StaticBasemapTilesSession.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAGZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,wCAAwC,EAAE,MAAM,qBAAqB,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;OAGG;IACH,YAAY,MAA6B;QACvC,KAAK,CAAC,MAAM,CAAC,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,KAAK,CAChB,MAA2B;QAE3B,OAAO,WAAW,CAAC,YAAY,iCAExB,MAAM,KACT,eAAe,EACb,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,KAAI,wCAAwC,KAEvE,yBAE8B,CAC/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import {\n BaseSession,\n IBasemapSessionParams,\n IStartSessionParams\n} from \"./BaseSession.js\";\nimport { DEFAULT_START_STATIC_BASEMAP_SESSION_URL } from \"./utils/defaults.js\";\n\n/**\n * `StaticBasemapTilesSession` is a class that extends {@linkcode BaseSession} to manage sessions\n * for static basemap tiles. It provides methods to {@linkcode StaticBasemapTilesSession.start} a new session\n * which should be used instead of constructing a new instance directly.\n *\n * @class StaticBasemapTilesSession\n * @extends BaseSession\n */\nexport class StaticBasemapTilesSession extends BaseSession {\n /**\n * Creates an instance of `StaticBasemapTilesSession`. Constructing `StaticBasemapTilesSession` directly is discouraged.\n * Instead, use the static method {@linkcode StaticBasemapTilesSession.start} to start a new session.`\n */\n constructor(params: IBasemapSessionParams) {\n super(params);\n }\n\n /**\n * Starts a new static basemap tiles session.\n */\n static async start(\n params: IStartSessionParams\n ): Promise<StaticBasemapTilesSession> {\n return BaseSession.startSession(\n {\n ...params,\n startSessionUrl:\n params?.startSessionUrl || DEFAULT_START_STATIC_BASEMAP_SESSION_URL\n },\n StaticBasemapTilesSession as new (\n params: IBasemapSessionParams\n ) => StaticBasemapTilesSession\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from \"./BaseSession.js\";\nexport * from \"./BasemapStyleSession.js\";\nexport * from \"./types/StyleFamily.js\";\nexport * from \"./utils/defaults.js\";\nexport * from \"./utils/startNewSession.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StyleFamily.js","sourceRoot":"","sources":["../../../src/types/StyleFamily.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Defines the style family for basemap sessions.\n */\nexport type StyleFamily = \"open\" | \"arcgis\";\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const DEFAULT_START_BASEMAP_STYLE_SESSION_URL = "https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start";
|
|
2
|
+
export declare const DEFAULT_SAFETY_MARGIN: number;
|
|
3
|
+
export declare const DEFAULT_CHECK_EXPIRATION_INTERVAL = 10;
|
|
4
|
+
export declare const DEFAULT_DURATION: number;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const DEFAULT_START_BASEMAP_STYLE_SESSION_URL = "https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start";
|
|
2
|
+
export const DEFAULT_SAFETY_MARGIN = 5 * 60; // Default to 5 minutes in seconds
|
|
3
|
+
export const DEFAULT_CHECK_EXPIRATION_INTERVAL = 10; // Default to 10 seconds
|
|
4
|
+
export const DEFAULT_DURATION = 12 * 60 * 60; // Default to 12 hours in seconds
|
|
5
|
+
//# sourceMappingURL=defaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/utils/defaults.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uCAAuC,GAClD,oFAAoF,CAAC;AAEvF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,kCAAkC;AAE/E,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,CAAC,CAAC,wBAAwB;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,iCAAiC","sourcesContent":["export const DEFAULT_START_BASEMAP_STYLE_SESSION_URL =\n \"https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/sessions/start\";\n\nexport const DEFAULT_SAFETY_MARGIN = 5 * 60; // Default to 5 minutes in seconds\n\nexport const DEFAULT_CHECK_EXPIRATION_INTERVAL = 10; // Default to 10 seconds\n\nexport const DEFAULT_DURATION = 12 * 60 * 60; // Default to 12 hours in seconds\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function determineSafetyMargin(duration: number | undefined, safetyMargin: number | undefined): number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DEFAULT_SAFETY_MARGIN } from "./defaults.js";
|
|
2
|
+
export function determineSafetyMargin(duration, safetyMargin) {
|
|
3
|
+
if (safetyMargin) {
|
|
4
|
+
return safetyMargin;
|
|
5
|
+
}
|
|
6
|
+
// common cases are
|
|
7
|
+
// duration is 60 seconds, this will return a 1 second safety margin
|
|
8
|
+
// duration is 43200 seconds, this will return a 300 second (5 minutes) safety margin
|
|
9
|
+
return Math.min(Math.max(duration / 100, 1), DEFAULT_SAFETY_MARGIN);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=detemineSafetyMargin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detemineSafetyMargin.js","sourceRoot":"","sources":["../../../src/utils/detemineSafetyMargin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,qBAAqB,CACnC,QAA4B,EAC5B,YAAgC;IAEhC,IAAI,YAAY,EAAE;QAChB,OAAO,YAAY,CAAC;KACrB;IACD,mBAAmB;IACnB,oEAAoE;IACpE,qFAAqF;IACrF,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC;AACtE,CAAC","sourcesContent":["import { DEFAULT_SAFETY_MARGIN } from \"./defaults.js\";\n\nexport function determineSafetyMargin(\n duration: number | undefined,\n safetyMargin: number | undefined\n): number {\n if (safetyMargin) {\n return safetyMargin;\n }\n // common cases are\n // duration is 60 seconds, this will return a 1 second safety margin\n // duration is 43200 seconds, this will return a 300 second (5 minutes) safety margin\n return Math.min(Math.max(duration / 100, 1), DEFAULT_SAFETY_MARGIN);\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAuthenticationManager } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { StyleFamily } from "../types/StyleFamily.js";
|
|
3
|
+
export interface IRequestNewSessionParams {
|
|
4
|
+
startSessionUrl: string;
|
|
5
|
+
authentication: IAuthenticationManager | string;
|
|
6
|
+
styleFamily?: StyleFamily;
|
|
7
|
+
duration?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface IStartSessionResponse {
|
|
10
|
+
sessionToken: string;
|
|
11
|
+
endTime: number;
|
|
12
|
+
startTime: number;
|
|
13
|
+
styleFamily: StyleFamily;
|
|
14
|
+
}
|
|
15
|
+
export declare function startNewSession({ startSessionUrl, authentication, styleFamily, duration }: IRequestNewSessionParams): Promise<IStartSessionResponse>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { request } from "@esri/arcgis-rest-request";
|
|
2
|
+
import { DEFAULT_DURATION } from "./defaults.js";
|
|
3
|
+
export function startNewSession({ startSessionUrl, authentication, styleFamily = "arcgis", duration = DEFAULT_DURATION }) {
|
|
4
|
+
return request(startSessionUrl, {
|
|
5
|
+
httpMethod: "GET",
|
|
6
|
+
authentication: authentication,
|
|
7
|
+
params: { styleFamily, durationSeconds: duration }
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=startNewSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"startNewSession.js","sourceRoot":"","sources":["../../../src/utils/startNewSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAE5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAgBjD,MAAM,UAAU,eAAe,CAAC,EAC9B,eAAe,EACf,cAAc,EACd,WAAW,GAAG,QAAQ,EACtB,QAAQ,GAAG,gBAAgB,EACF;IACzB,OAAO,OAAO,CAAC,eAAe,EAAE;QAC9B,UAAU,EAAE,KAAK;QACjB,cAAc,EAAE,cAAc;QAC9B,MAAM,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE;KACnD,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { IAuthenticationManager, request } from \"@esri/arcgis-rest-request\";\nimport { StyleFamily } from \"../types/StyleFamily.js\";\nimport { DEFAULT_DURATION } from \"./defaults.js\";\n\nexport interface IRequestNewSessionParams {\n startSessionUrl: string;\n authentication: IAuthenticationManager | string;\n styleFamily?: StyleFamily;\n duration?: number;\n}\n\nexport interface IStartSessionResponse {\n sessionToken: string;\n endTime: number;\n startTime: number;\n styleFamily: StyleFamily;\n}\n\nexport function startNewSession({\n startSessionUrl,\n authentication,\n styleFamily = \"arcgis\",\n duration = DEFAULT_DURATION\n}: IRequestNewSessionParams): Promise<IStartSessionResponse> {\n return request(startSessionUrl, {\n httpMethod: \"GET\",\n authentication: authentication,\n params: { styleFamily, durationSeconds: duration }\n });\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility type to convert all properties of an object type to writable.
|
|
3
|
+
*
|
|
4
|
+
* If needed a more complex version of is avalable at: https://github.com/sindresorhus/type-fest/blob/main/source/writable.d.ts
|
|
5
|
+
*/
|
|
6
|
+
export declare type Writable<T> = {
|
|
7
|
+
-readonly [K in keyof T]: T[K];
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writable.js","sourceRoot":"","sources":["../../../src/utils/writable.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Utility type to convert all properties of an object type to writable.\n *\n * If needed a more complex version of is avalable at: https://github.com/sindresorhus/type-fest/blob/main/source/writable.d.ts\n */\nexport type Writable<T> = {\n -readonly [K in keyof T]: T[K];\n};\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@esri/arcgis-rest-basemap-sessions",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Helper functions for the Basemap Sessions service in @esri/arcgis-rest-js.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"ES6",
|
|
8
|
+
"arcgis",
|
|
9
|
+
"esri",
|
|
10
|
+
"fetch",
|
|
11
|
+
"promise",
|
|
12
|
+
"typescript"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/cjs/index.js",
|
|
16
|
+
"module": "dist/esm/index.js",
|
|
17
|
+
"unpkg": "dist/bundled/basemap-sessions.umd.min.js",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/esm/index.js",
|
|
21
|
+
"require": "./dist/cjs/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"types": "dist/esm/index.d.ts",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/**"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "npm-run-all --parallel build:*",
|
|
31
|
+
"postbuild": "node ../../scripts/create-dist-package-jsons.js",
|
|
32
|
+
"build:bundled": "rollup -c ../../rollup.js",
|
|
33
|
+
"build:cjs": "tsc --outDir ./dist/cjs -m commonjs",
|
|
34
|
+
"postbuild:cjs": "node ../../scripts/create-dist-package-jsons.js",
|
|
35
|
+
"build:esm": "tsc --outDir ./dist/esm --declaration",
|
|
36
|
+
"postbuild:esm": "node ../../scripts/create-dist-package-jsons.js",
|
|
37
|
+
"dev": "npm-run-all --parallel dev:*",
|
|
38
|
+
"dev:bundled": "rollup -w -c ../../rollup.js",
|
|
39
|
+
"dev:cjs": "tsc -w --outDir ./dist/cjs -m commonjs",
|
|
40
|
+
"dev:esm": "tsc -w --outDir ./dist/esm --declaration"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18.0.0"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"mitt": "^3.0.1",
|
|
47
|
+
"tslib": "^2.3.0"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@esri/arcgis-rest-request": "^4.0.0"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@esri/arcgis-rest-request": "^4.0.1"
|
|
54
|
+
},
|
|
55
|
+
"contributors": [
|
|
56
|
+
"Patrick Arlt <parlt@esri.com> (http://patrickarlt.com/)"
|
|
57
|
+
],
|
|
58
|
+
"homepage": "https://github.com/Esri/arcgis-rest-js#readme",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/Esri/arcgis-rest-js.git",
|
|
62
|
+
"directory": "packages/arcgis-rest-basemap-sessions"
|
|
63
|
+
},
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/Esri/arcgis-rest-js/issues"
|
|
66
|
+
},
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"esri": {
|
|
71
|
+
"keyExports": [
|
|
72
|
+
"@TODO"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|