powerpagestoolkit 1.0.22 → 1.0.301

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -1
  2. package/index.js +4 -2
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -150,7 +150,7 @@ declare module "powerpagestoolkit" {
150
150
  value(): any; // Adjust this type based on the structure of your schema values
151
151
  }
152
152
 
153
- export type API {
153
+ export class API {
154
154
  /**
155
155
  * Creates a new record in DataVerse.
156
156
  * @param schema An instance of a schema class, containing the desired information for the POST request.
package/index.js CHANGED
@@ -1,4 +1,6 @@
1
- import API from "./lib/API.js";
1
+ import api from "./lib/API.js";
2
2
  import createDOMNodeReference from "./lib/DOMNodeReferences.js";
3
3
 
4
- export { API, createDOMNodeReference };
4
+ let exports = { api: new api(), createDOMNodeReference };
5
+ export default exports;
6
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "1.0.22",
3
+ "version": "1.0.301",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",